simplify structure by remove (rezepte)

This commit is contained in:
2024-01-20 16:39:27 +01:00
parent 0c0e805b63
commit 39ec8017df
26 changed files with 2 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
import type { PageLoad } from "./$types";
export async function load({ fetch, params }) {
const res_season = await fetch(`/api/rezepte/items/icon/` + params.icon);
const res_icons = await fetch(`/api/rezepte/items/icon`);
const icons = await res_icons.json();
const item_season = await res_season.json();
return {
icons: icons,
icon: params.icon,
season: item_season,
};
};