Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
8 lines
210 B
TypeScript
8 lines
210 B
TypeScript
import { NextResponse } from "next/server";
|
|
import { getCurrentUser } from "@/lib/server-security";
|
|
|
|
export async function GET() {
|
|
const user = await getCurrentUser();
|
|
return NextResponse.json({ user });
|
|
}
|