mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 06:23: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")
|
||||
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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue