Function
create_backup
(
_auth: AuthContext = Depends(require_system_scope),
service: BackupService = Depends(get_service),
)
Source from the content-addressed store, hash-verified
| 131 | |
| 132 | @router.post("/backups") |
| 133 | async def create_backup( |
| 134 | _auth: AuthContext = Depends(require_system_scope), |
| 135 | service: BackupService = Depends(get_service), |
| 136 | ): |
| 137 | return await _run(service.export_backup, prefix="创建备份失败") |
| 138 | |
| 139 | |
| 140 | @legacy_router.post("/export") |
Callers
nothing calls this directly
Tested by
no test coverage detected