From 3b3c0d5037aa8ddbb1e48302d8855f6987a44f59 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 10 Jun 2026 15:40:44 +0000 Subject: [PATCH] Add src/app/api/admin/logout/route.ts --- src/app/api/admin/logout/route.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/app/api/admin/logout/route.ts diff --git a/src/app/api/admin/logout/route.ts b/src/app/api/admin/logout/route.ts new file mode 100644 index 0000000..8109f57 --- /dev/null +++ b/src/app/api/admin/logout/route.ts @@ -0,0 +1,7 @@ +import { NextRequest, NextResponse } from 'next/server'; + +export async function POST(req: NextRequest) { + // In a real app, invalidate JWT on server or clear session. + // For this mock, no server-side action is strictly needed as client manages localStorage token and cookie. + return NextResponse.json({ message: 'Logout successful' }, { status: 200 }); +} \ No newline at end of file