Feat: delete aria2 record in client side (#335)

This commit is contained in:
HFO4
2020-11-23 19:24:56 +08:00
parent c6110e9e75
commit f0a68236a8
7 changed files with 33 additions and 6 deletions

View File

@@ -485,7 +485,7 @@ func InitMasterRouter() *gin.Engine {
aria2.POST("torrent/:id", middleware.HashID(hashid.FileID), controllers.AddAria2Torrent)
// 重新选择要下载的文件
aria2.PUT("select/:gid", controllers.SelectAria2File)
// 取消下载任务
// 取消或删除下载任务
aria2.DELETE("task/:gid", controllers.CancelAria2Download)
// 获取正在下载中的任务
aria2.GET("downloading", controllers.ListDownloading)