Backup API now instead returns 500 on failure
Removed the "success" flag
This commit is contained in:
@@ -162,8 +162,7 @@ class HealthCheck(BaseModel):
|
||||
|
||||
|
||||
class BackupResponse(BaseModel):
|
||||
success: bool = Field(description="Whether the backup was created successfully.", example=True)
|
||||
path: Optional[str] = Field(
|
||||
path: str = Field(
|
||||
default=None,
|
||||
description="Path to the created backup file.",
|
||||
example="/home/app/.local/share/spoolman/backups/spoolman.db",
|
||||
|
||||
Reference in New Issue
Block a user