webcompile/src/routes/instances/+page.server.ts

5 lines
199 B
TypeScript
Raw Normal View History

2022-11-10 00:12:34 +05:30
import type { PageServerLoad } from "./$types";
export const load: PageServerLoad = async () => {
2022-12-06 19:09:50 +05:30
return await fetch(import.meta.env.VITE_API_URL + "/api/v1/status").then((res) => res.json());
2022-11-10 00:12:34 +05:30
}