mirror of
https://github.com/arthur-pbty/links.git
synced 2026-08-01 20:29:27 +02:00
16 lines
345 B
JavaScript
16 lines
345 B
JavaScript
import { NextResponse } from 'next/server';
|
|
import { ADMIN_COOKIE } from '../../../../lib/auth';
|
|
|
|
export async function POST() {
|
|
const response = NextResponse.json({ ok: true });
|
|
response.cookies.set({
|
|
name: ADMIN_COOKIE,
|
|
value: '',
|
|
path: '/',
|
|
httpOnly: true,
|
|
sameSite: 'strict',
|
|
maxAge: 0
|
|
});
|
|
return response;
|
|
}
|