mirror of
https://github.com/System-End/campfire.git
synced 2026-04-19 20:55:10 +00:00
fix: remove api route
This commit is contained in:
parent
dd25aeac8f
commit
7cd5e04f4c
1 changed files with 0 additions and 15 deletions
|
|
@ -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',
|
||||
},
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Reference in a new issue