Initial ASPHP website

This commit is contained in:
Codex
2026-09-06 00:14:09 +03:30
commit ff6d5a3c0c
65 changed files with 14617 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { NextResponse } from "next/server";
import { getCurrentUser } from "../../meshkee";
export async function GET(request) {
const token = request.headers.get("authorization")?.replace(/^Bearer\s+/i, "");
if (!token) return NextResponse.json({ message: "Missing token" }, { status: 401 });
try {
const data = await getCurrentUser(token);
return NextResponse.json(data);
} catch {
return NextResponse.json({ message: "Could not load user" }, { status: 401 });
}
}