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

@@ -86,7 +86,7 @@
image: img_local,
name: short_name,
}
await fetch(`/api/img/add`, {
await fetch(`/api/rezepte/img/add`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -101,7 +101,7 @@
upload_img()
console.log(add_info.total_time)
const res = await fetch('/api/add', {
const res = await fetch('/api/rezepte/add', {
method: 'POST',
body: JSON.stringify({
recipe: {