fix: remove api route

This commit is contained in:
techpixel 2026-01-20 23:13:37 -05:00
parent dd25aeac8f
commit 7cd5e04f4c
No known key found for this signature in database
GPG key ID: 34D6A091A305A398

View file

@ -1,15 +0,0 @@
import type { APIRoute } from 'astro';
import { loadEventsLoc } from '../../lib/events';
export const prerender = false;
export const GET: APIRoute = async () => {
const events = await loadEventsLoc();
return new Response(JSON.stringify(events), {
status: 200,
headers: {
'Content-Type': 'application/json',
},
});
};