(
payload: BackupUploadInitRequest,
_auth: AuthContext = Depends(require_system_scope),
service: BackupService = Depends(get_service),
)
| 165 | |
| 166 | @router.post("/backups/upload/init") |
| 167 | async def init_backup_upload( |
| 168 | payload: BackupUploadInitRequest, |
| 169 | _auth: AuthContext = Depends(require_system_scope), |
| 170 | service: BackupService = Depends(get_service), |
| 171 | ): |
| 172 | return await _run( |
| 173 | lambda: service.upload_init(_model_dict(payload)), |
| 174 | prefix="初始化分片上传失败", |
| 175 | ) |
| 176 | |
| 177 | |
| 178 | @legacy_router.post("/upload/init") |
nothing calls this directly
no test coverage detected