fix: return 201 on backup create

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-06-26 17:13:57 +02:00
parent 6e9c2b853a
commit ea59db302d
2 changed files with 1 additions and 9 deletions

View File

@@ -126,7 +126,7 @@ def list_backups(
) from e
@router.post("/backups", response_model=Dict[str, str])
@router.post("/backups", response_model=Dict[str, str], status_code=status.HTTP_201_CREATED)
def create_backup(
name: Optional[str] = None, auth: dict = Depends(require_auth)
) -> Dict[str, str]: