mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 22:43:34 -07:00
added async file responses
This commit is contained in:
parent
e4fc908218
commit
6231e8026b
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue