homepage/src/routes/rezepte/+page.server.ts

13 lines
391 B
TypeScript
Raw Normal View History

2023-06-19 00:32:51 +02:00
import type { PageLoad } from "./$types";
export async function load({ fetch }) {
const res_season = await fetch(`/api/items/in_season`);
const res_all_brief = await fetch(`/api/items/all_brief`);
const item_season = await res_season.json();
const item_all_brief = await res_all_brief.json();
return {
season: item_season,
all_brief: item_all_brief,
};
};