Data/Seasonpickresults: Add page to enter seasonpickresults
All checks were successful
Build Formula11 Docker Image / pocketbase-docker (push) Successful in 1m19s
All checks were successful
Build Formula11 Docker Image / pocketbase-docker (push) Successful in 1m19s
This commit is contained in:
20
src/routes/data/seasonpickresults/+page.ts
Normal file
20
src/routes/data/seasonpickresults/+page.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import {
|
||||
fetch_drivers,
|
||||
fetch_seasonpickresults,
|
||||
fetch_teams,
|
||||
fetch_users,
|
||||
fetch_visibleseasonpicks,
|
||||
} from "$lib/fetch";
|
||||
import type { PageLoad } from "../../$types";
|
||||
|
||||
export const load: PageLoad = async ({ fetch, depends }) => {
|
||||
depends("data:drivers", "data:seasonpickresults", "data:users", "data:seasonpicks", "data:teams");
|
||||
|
||||
return {
|
||||
users: fetch_users(fetch),
|
||||
drivers: fetch_drivers(fetch),
|
||||
teams: fetch_teams(fetch),
|
||||
seasonpicks: fetch_visibleseasonpicks(fetch),
|
||||
seasonpickresults: fetch_seasonpickresults(fetch),
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user