added async file responses

This commit is contained in:
hay-kot 2021-02-09 17:28:28 -09:00
commit 6231e8026b
2 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,7 @@ def upload_backup_zipfile(archive: UploadFile = File(...)):
@router.get("/{file_name}/download") @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 """ """ Upload a .zip File to later be imported into Mealie """
file = BACKUP_DIR.joinpath(file_name) file = BACKUP_DIR.joinpath(file_name)

View file

@ -15,10 +15,10 @@ def facivon():
@router.get("/") @router.get("/")
def root(): async def root():
return FileResponse(BASE_HTML) return FileResponse(BASE_HTML)
@router.get("/{full_path:path}") @router.get("/{full_path:path}")
def root_plus(full_path): async def root_plus(full_path):
return FileResponse(BASE_HTML) return FileResponse(BASE_HTML)