first commit

This commit is contained in:
rachit1977
2026-06-14 10:03:34 +07:00
commit b55a575ac3
53 changed files with 9257 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import { NextResponse } from "next/server";
import { getCurrentUser } from "@/lib/auth";
import { jsonError } from "@/lib/api";
export async function GET() {
const user = await getCurrentUser();
if (!user) {
return jsonError("Unauthorized", 401);
}
return NextResponse.json({ user });
}