import { NextRequest, NextResponse } from 'next/server';
import { ADM_COOKIE, USR_COOKIE, buildClearCookie, isSecureCookie } from '@/lib/auth/cookies';

export async function POST(request: NextRequest) {
  const secure = isSecureCookie(request);
  const headers = new Headers();
  headers.append('Set-Cookie', buildClearCookie(ADM_COOKIE, secure));
  headers.append('Set-Cookie', buildClearCookie(USR_COOKIE, secure));
  return NextResponse.json({ success: true }, { headers });
}
