Spaces:
Runtime error
Runtime error
| import type { Model } from "$lib/types.js"; | |
| import type { PageLoad } from "./$types.js"; | |
| export const load: PageLoad = async ({ fetch }) => { | |
| const res = await fetch("/api/models"); | |
| const models: Model[] = await res.json(); | |
| return { models }; | |
| }; | |