diff --git a/src/routes/instances/+page.server.ts b/src/routes/instances/+page.server.ts index 7e20563..da85d5b 100644 --- a/src/routes/instances/+page.server.ts +++ b/src/routes/instances/+page.server.ts @@ -2,5 +2,8 @@ import type { PageServerLoad } from "./$types"; import { env } from "$env/dynamic/private"; export const load: PageServerLoad = async () => { - return await fetch(env.VITE_API_URL + "/api/v1/status").then((res) => res.json()); + return { + state: await fetch(env.VITE_API_URL + "/api/v1/state/status").then((res) => res.json()), + instances: await fetch(env.VITE_API_URL + "/api/v1/status").then((res) => res.json()) + } } \ No newline at end of file diff --git a/src/routes/instances/+page.svelte b/src/routes/instances/+page.svelte index 0e8c374..f2e1506 100644 --- a/src/routes/instances/+page.svelte +++ b/src/routes/instances/+page.svelte @@ -13,52 +13,60 @@