Admin page
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user