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