import { buildIcsFileContent } from "@/lib/calendar";

export function GET() {
  const ics = buildIcsFileContent();

  return new Response(ics, {
    headers: {
      "Content-Type": "text/calendar; charset=utf-8",
      "Content-Disposition": 'attachment; filename="grv-summit.ics"',
    },
  });
}
