Files
MAD-Platform/app/api/auth/logout/route.ts

8 lines
192 B
TypeScript
Raw Normal View History

2026-01-20 17:20:13 +01:00
import { NextResponse } from 'next/server';
import { clearSession } from '@/lib/auth';
export async function POST() {
await clearSession();
return NextResponse.json({ success: true });
}