Files
finanzas/app/api/auth/logout/route.ts
2026-03-31 01:23:33 -03:00

8 lines
190 B
TypeScript

import { NextResponse } from 'next/server';
import { destroySession } from '@/lib/auth';
export async function POST() {
destroySession();
return NextResponse.json({ success: true });
}