migrate to segfaultapi

This commit is contained in:
2022-11-09 20:42:34 +02:00
parent 6b5bf780b3
commit 8ddb838d08
17 changed files with 273 additions and 361 deletions

View File

@ -0,0 +1,8 @@
import type { PageServerLoad } from "./$types";
export const load: PageServerLoad = async () => {
return {
state: await fetch("https://api.projectsegfau.lt/api/v1/state/announcements").then((res) => res.json()),
announcements: await fetch("https://api.projectsegfau.lt/api/v1/announcements").then((res) => res.json())
}
}