App directory #3
This commit is contained in:
parent
8bbeaa25cf
commit
69706053c6
25 changed files with 69 additions and 40 deletions
|
|
@ -3,7 +3,7 @@ import { getServerSession } from "next-auth";
|
|||
import { authOptions } from "@/app/_lib/auth";
|
||||
import { createUserVisualization } from "@/app/_lib/opensearch";
|
||||
|
||||
export const POSt = async (req: NextRequest) => {
|
||||
export const POST = async (req: NextRequest) => {
|
||||
const session = await getServerSession(authOptions);
|
||||
const { user: { email } }: any = session;
|
||||
const { visualizationID, title, description, query } = await req.json();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue