Files
gsv_gallery/src/app/api/auth/logout/route.ts
T
Atakan Doğan Özban d74c422de6 Add admin panel, gallery, and security hardening.
Replace forgeable cookie auth with signed JWT sessions, protect admin APIs, add input validation, and improve Docker deployment config.
2026-07-12 00:34:46 +02:00

15 lines
356 B
TypeScript

import { NextResponse } from "next/server";
import { getSessionCookieOptions, SESSION_COOKIE } from "@/lib/session";
export async function POST() {
const response = NextResponse.json({ success: true });
response.cookies.set({
...getSessionCookieOptions(0),
name: SESSION_COOKIE,
value: "",
});
return response;
}