Initial commit

This commit is contained in:
2023-06-19 00:32:51 +02:00
parent c226daf9a0
commit be19e63970
281 changed files with 2199 additions and 0 deletions

View File

@ -0,0 +1,11 @@
// import { error } from '@sveltejs/kit';
import type { PageLoad } from "./$types";
//import { Recipe } from '../../../models/Recipe';
//import { dbConnect, dbDisconnect } from '../../../utils/db';
export async function load({ fetch, params }) {
const res = await fetch(`/api/items/${params.name}`);
const item = await res.json();
return item;
};