move API routes as cleanup

This commit is contained in:
2023-07-22 13:08:41 +02:00
parent 9705509f54
commit e9339d4ba4
36 changed files with 482 additions and 35 deletions

View File

@@ -2,7 +2,7 @@ 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 res_season = await fetch(`/api/rezepte/items/in_season/` + current_month);
const item_season = await res_season.json();
return {
season: item_season,