Initial commit: spreewaldzeit + Dockerfile for Coolify (Next.js + Prisma/SQLite)
This commit is contained in:
7
app/api/admin/logout/route.ts
Normal file
7
app/api/admin/logout/route.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { NextResponse } from "next/server";
|
||||
import { clearSession } from "@/lib/auth";
|
||||
|
||||
export async function POST() {
|
||||
clearSession();
|
||||
return NextResponse.json({ ok: true });
|
||||
}
|
||||
Reference in New Issue
Block a user