Basic post display
This commit is contained in:
8
src/routes/+server.ts
Normal file
8
src/routes/+server.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { TimelineReader } from '$lib/server/timeline';
|
||||
import type { RequestHandler } from './$types';
|
||||
|
||||
TimelineReader.init();
|
||||
|
||||
export const GET = (async ({ fetch }) => {
|
||||
return await fetch('api/posts');
|
||||
}) satisfies RequestHandler;
|
Reference in New Issue
Block a user