

import { cookies } from "next/headers";

export async function POST() {
  const c = cookies();

  // Supprime les cookies active_org_id éventuels (toutes portées courantes)
  try {
    c.set("active_org_id", "", { path: "/", maxAge: 0 });
    c.set("active_org_id", "", { path: "/staff", maxAge: 0 });
  } catch {}

  return new Response(JSON.stringify({ ok: true }), {
    status: 200,
    headers: { "Content-Type": "application/json" },
  });
}