Add src/app/api/admin/logout/route.ts
This commit is contained in:
7
src/app/api/admin/logout/route.ts
Normal file
7
src/app/api/admin/logout/route.ts
Normal file
@@ -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 });
|
||||
}
|
||||
Reference in New Issue
Block a user