First fully working user management, move to layout groups
This commit is contained in:
10
src/routes/(rezepte)/rezepte/season/+page.ts
Normal file
10
src/routes/(rezepte)/rezepte/season/+page.ts
Normal 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,
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user