Basic post display

This commit is contained in:
2023-04-01 14:31:29 +02:00
parent dccb94a792
commit d2f2214d65
13 changed files with 4325 additions and 2891 deletions

10
src/routes/+page.ts Normal file
View File

@ -0,0 +1,10 @@
import type { Post } from '$lib/mastodon/response';
import type { PageLoad } from './$types';
export const load = (async ({ fetch }) => {
const p = await fetch('/');
//const posts: Post[] = await p.json();
return {
posts: await p.json() as Post[]
};
}) satisfies PageLoad;