This commit is contained in:
Max Nuding 2023-04-02 17:41:33 +02:00
parent f6ae387e49
commit 5f208ec074
Signed by: phlaym
GPG Key ID: A06651BAB6777237
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;