Admin page

This commit is contained in:
2026-10-29 21:42:26 -03:00
parent 07e61d9dd1
commit f7f34e1a57
18 changed files with 369 additions and 13 deletions
+4
View File
@@ -12,3 +12,7 @@ export async function authenticate(req: Request) {
export function unauthorized() {
return Response.json({ error: "Invalid code" }, { status: 401 });
}
export function forbidden() {
return Response.json({ error: "Only admins can do this" }, { status: 403 });
}