Remove Beego tasks, make Importer available through DI

This commit is contained in:
Deluan
2020-01-08 09:39:58 -05:00
committed by Deluan Quintão
parent 79701caca3
commit 3af9972b41
8 changed files with 150 additions and 97 deletions
-13
View File
@@ -1,13 +0,0 @@
package controllers
import (
"github.com/astaxie/beego"
"github.com/cloudsonic/sonic-server/scanner"
)
type SyncController struct{ beego.Controller }
func (c *SyncController) Get() {
scanner.CheckForUpdates(true)
c.Ctx.WriteString("Import started. Check logs")
}