diff --git a/src/routes/data/official/teamstandings/+page.svelte b/src/routes/data/official/teamstandings/+page.svelte new file mode 100644 index 0000000..c3255f9 --- /dev/null +++ b/src/routes/data/official/teamstandings/+page.svelte @@ -0,0 +1,37 @@ + + + + Formula 11 - Official Team Standings + + +{#await data.scraped_teamstandings then standings} + +{/await} diff --git a/src/routes/data/official/teamstandings/+page.ts b/src/routes/data/official/teamstandings/+page.ts new file mode 100644 index 0000000..f937c07 --- /dev/null +++ b/src/routes/data/official/teamstandings/+page.ts @@ -0,0 +1,11 @@ +import { fetch_scraped_teamstandings, fetch_teams } from "$lib/fetch"; +import type { PageLoad } from "../../../$types"; + +export const load: PageLoad = async ({ fetch, depends }) => { + depends("data:scraped_teamstandings", "data:teams"); + + return { + scraped_teamstandings: fetch_scraped_teamstandings(fetch), + teams: fetch_teams(fetch), + }; +};