Skip to content

Commit

Permalink
fix: task list method
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jun 29, 2022
1 parent 0bf724f commit 58d153e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
8 changes: 6 additions & 2 deletions internal/bootstrap/aria2.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
package bootstrap

import "github.com/alist-org/alist/v3/internal/aria2"
import (
"github.com/alist-org/alist/v3/internal/aria2"
log "github.com/sirupsen/logrus"
)

func InitAria2() {
go func() {
_ = aria2.InitClient(2)
err := aria2.InitClient(2)
log.Errorf("failed to init aria2 client: %+v", err)
}()
}
12 changes: 6 additions & 6 deletions server/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ func Init(r *gin.Engine) {
task.GET("/down/undone", controllers.UndoneDownTask)
task.GET("/down/done", controllers.DoneDownTask)
task.POST("/down/cancel", controllers.CancelDownTask)
task.POST("/transfer/undone", controllers.UndoneTransferTask)
task.POST("/transfer/done", controllers.DoneTransferTask)
task.GET("/transfer/undone", controllers.UndoneTransferTask)
task.GET("/transfer/done", controllers.DoneTransferTask)
task.POST("/transfer/cancel", controllers.CancelTransferTask)
task.POST("/upload/undone", controllers.UndoneUploadTask)
task.POST("/upload/done", controllers.DoneUploadTask)
task.GET("/upload/undone", controllers.UndoneUploadTask)
task.GET("/upload/done", controllers.DoneUploadTask)
task.POST("/upload/cancel", controllers.CancelUploadTask)
task.POST("/copy/undone", controllers.UndoneCopyTask)
task.POST("/copy/done", controllers.DoneCopyTask)
task.GET("/copy/undone", controllers.UndoneCopyTask)
task.GET("/copy/done", controllers.DoneCopyTask)
task.POST("/copy/cancel", controllers.CancelCopyTask)

// guest can
Expand Down

0 comments on commit 58d153e

Please sign in to comment.