first commit

This commit is contained in:
2026-07-12 15:55:18 +05:30
commit ee98026cc5
404 changed files with 44522 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// API route: POST /api/logout. Clears the session.
import { verifyCsrf, logOut, type Context } from "@wrnexus/core";
export function POST(ctx: Context): Response {
if (!verifyCsrf(ctx)) return new Response("Invalid CSRF token", { status: 403 });
logOut(ctx);
return Response.json({ ok: true });
}