first commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { NextResponse } from "next/server";
|
||||
import { isAdminAuthenticated, ADMIN_USERNAME } from "@/lib/auth";
|
||||
|
||||
export async function GET() {
|
||||
const authenticated = await isAdminAuthenticated();
|
||||
return NextResponse.json({
|
||||
authenticated,
|
||||
username: authenticated ? ADMIN_USERNAME : null,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user