8 lines
190 B
TypeScript
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 });
|
|
}
|