navidrome/controllers/sync.go
2017-04-01 09:47:14 -04:00

13 lines
270 B
Go

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")
}