First fully working user management, move to layout groups

This commit is contained in:
2023-07-18 14:18:52 +02:00
parent 1f34c36384
commit 4321ece385
55 changed files with 366 additions and 192 deletions

View File

@@ -1,10 +0,0 @@
import type { PageLoad } from "./$types";
export async function load({ fetch, params, locals}) {
let current_month = new Date().getMonth() + 1
const res = await fetch(`/api/items/${params.name}`);
const recipe = await res.json();
return {recipe: recipe,
user: locals.user
};
};