Files
CVault/vault/app/api/auth/me/route.ts
T
arsam 7e54825dc3 Import source: vault/app/api/auth/me/route
Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
2026-09-18 23:16:49 +03:30

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 });
}