simplify structure by remove (rezepte)

This commit is contained in:
2024-01-20 16:39:27 +01:00
parent 2b18b377c0
commit a48a14f1cf
26 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
import type { PageLoad } from "./$types";
export async function load({ fetch, params }) {
const res_season = await fetch(`/api/rezepte/items/in_season/` + params.month);
const res_all_brief = await fetch(`/api/rezepte/items/all_brief`);
const item_season = await res_season.json();
const item_all_brief = await res_all_brief.json();
return {
month: params.month,
season: item_season,
};
};