fix(admin): persist data directory and pass env vars
This commit is contained in:
parent
99e8201745
commit
1d7e7c41c9
39 changed files with 1297 additions and 32 deletions
8
app/api/admin/logout/route.ts
Normal file
8
app/api/admin/logout/route.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { NextResponse } from "next/server";
|
||||
import { adminSessionCookie } from "@/lib/admin/auth";
|
||||
|
||||
export async function POST() {
|
||||
const response = NextResponse.json({ message: "Abgemeldet." });
|
||||
response.cookies.set(adminSessionCookie, "", { path: "/", maxAge: 0 });
|
||||
return response;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue