refactor: 将文件移动改为独立接口,扫描完成后手动触发
This commit is contained in:
@@ -34,10 +34,11 @@ func NewRouter(st *store.Store) *gin.Engine {
|
||||
apiGroup.POST("/media/stats", mc.Stats)
|
||||
apiGroup.GET("/media/preview", mc.Preview)
|
||||
|
||||
// 扫描整理(开始 / 中止 / 查进度 / 实时进度)
|
||||
// 扫描整理(开始 / 中止 / 移动 / 查进度 / 实时进度)
|
||||
sc := NewScanController(service.NewScanService(st))
|
||||
apiGroup.POST("/scan/start", sc.Start)
|
||||
apiGroup.POST("/scan/cancel", sc.Cancel)
|
||||
apiGroup.POST("/scan/move", sc.Move)
|
||||
apiGroup.GET("/scan/status", sc.Status)
|
||||
apiGroup.GET("/scan/ws", sc.Ws)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user