Fix #3
This commit is contained in:
parent
f6ae387e49
commit
5f208ec074
@ -1,5 +1,8 @@
|
||||
import { TimelineReader } from '$lib/server/timeline';
|
||||
import type { HandleServerError } from '@sveltejs/kit';
|
||||
|
||||
TimelineReader.init();
|
||||
|
||||
export const handleError = (({ error }) => {
|
||||
if (error instanceof Error) {
|
||||
console.error('Something went wrong: ', error.name, error.message);
|
||||
|
@ -1,8 +1,5 @@
|
||||
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;
|
Loading…
Reference in New Issue
Block a user