MCPcopy
hub / github.com/AstrBotDevs/AstrBot / init_backup_upload

Function init_backup_upload

astrbot/dashboard/api/backups.py:167–175  ·  view source on GitHub ↗
(
    payload: BackupUploadInitRequest,
    _auth: AuthContext = Depends(require_system_scope),
    service: BackupService = Depends(get_service),
)

Source from the content-addressed store, hash-verified

165
166@router.post("/backups/upload/init")
167async 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")

Callers

nothing calls this directly

Calls 3

upload_initMethod · 0.80
_runFunction · 0.70
_model_dictFunction · 0.70

Tested by

no test coverage detected