mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-10-27 08:14:30 -04: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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user