mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-04 21:15:22 +02:00
fix: Update admin_backups.py to handle API backup file uploads correctly. (#5715)
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
parent
d2e9c04af1
commit
108ac40b22
1 changed files with 1 additions and 0 deletions
|
@ -94,6 +94,7 @@ class AdminBackupController(BaseAdminController):
|
|||
|
||||
if not dest.is_file():
|
||||
raise HTTPException(status.HTTP_400_BAD_REQUEST)
|
||||
return SuccessResponse.respond("Upload successful")
|
||||
|
||||
@router.post("/{file_name}/restore", response_model=SuccessResponse)
|
||||
def import_one(self, file_name: str):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue