Loading files
import { NextResponse } from "next/server";
import { isAdminAuthorized } from "@/lib/admin";
export const runtime = "nodejs";
export const dynamic = "force-dynamic";
/** Lightweight password check so the admin page can unlock its controls. */
export async function POST(req: Request) {
if (!isAdminAuthorized(req)) {
return NextResponse.json({ ok: false }, { status: 401 });
}
return NextResponse.json({ ok: true });
}
05241c15dThis file is pinned to the selected release. Download the original to open it in your design tool.