Add src/app/api/admin/logout/route.ts

This commit is contained in:
2026-06-10 15:40:44 +00:00
parent 83d4cfc0e0
commit 3b3c0d5037

View 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 });
}