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

10 lines
198 B
TypeScript
Raw Normal View History

2022-11-10 00:12:34 +05:30
import type { PageServerLoad } from "./$types";
export const load: PageServerLoad = async ({ fetch }) => {
2022-12-13 21:07:58 +05:30
return {
instances: await fetch("/api/status").then(
2022-12-27 20:58:47 +05:30
(res) => res.json()
)
2022-12-27 20:58:47 +05:30
};
};