This commit is contained in:
2026-04-14 18:05:32 +08:00
parent 68457c9fbd
commit 6378ab4994
40 changed files with 10488 additions and 113 deletions
+8
View File
@@ -0,0 +1,8 @@
import { NextResponse } from "next/server";
import { destroyAdminSession, destroyUserSession } from "@/lib/session";
export async function POST(request: Request) {
await Promise.all([destroyAdminSession(), destroyUserSession()]);
return NextResponse.redirect(new URL("/login", request.url));
}