2023-06-19 20:38:45 +02:00
|
|
|
import type { PageLoad } from "./$types";
|
|
|
|
|
|
|
|
export async function load({ fetch }) {
|
|
|
|
let current_month = new Date().getMonth() + 1
|
2023-07-22 13:08:41 +02:00
|
|
|
const res_season = await fetch(`/api/rezepte/items/in_season/` + current_month);
|
2023-06-19 20:38:45 +02:00
|
|
|
const item_season = await res_season.json();
|
|
|
|
return {
|
|
|
|
season: item_season,
|
|
|
|
};
|
|
|
|
};
|