cleaner login and registration

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

View File

@@ -1,8 +1,10 @@
import type { PageLoad } from "./$types";
export async function load({ fetch, params}) {
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};
return {recipe: recipe,
user: locals.user
};
};

View File

@@ -342,7 +342,6 @@ h3{
}
</style>
<h1>Rezept editieren</h1>
<CardAdd {card_data} {image_preview_url} ></CardAdd>
<h3>Kurzname (für URL):</h3>