first working prototype

This commit is contained in:
2023-06-19 20:38:45 +02:00
parent cbe36be64b
commit 21411fa73a
287 changed files with 863 additions and 268 deletions
+10
View File
@@ -0,0 +1,10 @@
import type { PageLoad } from "./$types";
export async function load({ fetch }) {
let current_month = new Date().getMonth() + 1
const res_season = await fetch(`/api/items/in_season/` + current_month);
const item_season = await res_season.json();
return {
season: item_season,
};
};