Data/Official: Implement teamstandings page
This commit is contained in:
11
src/routes/data/official/teamstandings/+page.ts
Normal file
11
src/routes/data/official/teamstandings/+page.ts
Normal file
@ -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),
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user