cleaner login and registration

This commit is contained in:
2023-07-18 12:05:30 +02:00
parent ffa4496c16
commit 70e640aa9a
12 changed files with 153 additions and 30 deletions

View File

@@ -0,0 +1,10 @@
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
};
};