init project portal web
This commit is contained in:
10
app/api/cookies/route.ts
Normal file
10
app/api/cookies/route.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { NextResponse } from "next/server";
|
||||
import { cookies } from "next/headers";
|
||||
|
||||
export async function GET() {
|
||||
const cookieStore = cookies();
|
||||
const credential = JSON.parse(cookieStore.get("credential")?.value || "");
|
||||
|
||||
|
||||
return NextResponse.json({ credential });
|
||||
}
|
||||
Reference in New Issue
Block a user