chore: add version to aria handle

This commit is contained in:
Noah Hsu
2022-07-12 14:02:29 +08:00
parent b1d563c874
commit 4ac312fd07
3 changed files with 8 additions and 8 deletions

View File

@ -29,12 +29,12 @@ func SetAria2(c *gin.Context) {
common.ErrorResp(c, err, 500)
return
}
err := aria2.InitClient(2)
version, err := aria2.InitClient(2)
if err != nil {
common.ErrorResp(c, err, 500)
return
}
common.SuccessResp(c)
common.SuccessResp(c, version)
}
type AddAria2Req struct {