Feat: cancel aria2 download task

This commit is contained in:
HFO4
2020-02-06 10:07:46 +08:00
parent 1a93c9a2b9
commit c29695a40d
5 changed files with 62 additions and 15 deletions

View File

@@ -282,6 +282,8 @@ func InitMasterRouter() *gin.Engine {
aria2.POST("torrent/*path", controllers.AddAria2Torrent)
// 重新选择要下载的文件
aria2.PUT("select/:gid", controllers.SelectAria2File)
// 取消下载任务
aria2.DELETE("task/:gid", controllers.CancelAria2Download)
}
// 目录