Icon route added

This commit is contained in:
2023-07-03 12:39:34 +02:00
parent f218d81cf1
commit 73c1d13c37
12 changed files with 205 additions and 27 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/items/icon/` + params.icon);
const res_icons = await fetch(`/api/items/icon`);
const icons = await res_icons.json();
const item_season = await res_season.json();
return {
icons: icons,
icon: params.icon,
season: item_season,
};
};