Thomas G. Lopes
fix tokens (#75)
c670717 unverified
raw
history blame
250 Bytes
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 };
};