diff --git a/mealie/routes/backup_routes.py b/mealie/routes/backup_routes.py index 24edf1103..c1c1d3dd9 100644 --- a/mealie/routes/backup_routes.py +++ b/mealie/routes/backup_routes.py @@ -66,7 +66,7 @@ def upload_backup_zipfile(archive: UploadFile = File(...)): @router.get("/{file_name}/download") -def upload_nextcloud_zipfile(file_name: str): +async def upload_nextcloud_zipfile(file_name: str): """ Upload a .zip File to later be imported into Mealie """ file = BACKUP_DIR.joinpath(file_name) diff --git a/mealie/routes/static_routes.py b/mealie/routes/static_routes.py index 6744b6972..52d2fa9fe 100644 --- a/mealie/routes/static_routes.py +++ b/mealie/routes/static_routes.py @@ -15,10 +15,10 @@ def facivon(): @router.get("/") -def root(): +async def root(): return FileResponse(BASE_HTML) @router.get("/{full_path:path}") -def root_plus(full_path): +async def root_plus(full_path): return FileResponse(BASE_HTML)