2016-02-25 06:27:20 -09:00
|
|
|
package controllers
|
2016-02-25 21:32:31 -09:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/astaxie/beego"
|
|
|
|
|
"github.com/deluan/gosonic/scanner"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type SyncController struct{ beego.Controller }
|
|
|
|
|
|
|
|
|
|
func (c *SyncController) Get() {
|
2016-03-11 14:37:37 -09:00
|
|
|
scanner.CheckForUpdates(true)
|
2016-02-25 21:32:31 -09:00
|
|
|
c.Ctx.WriteString("Import started. Check logs")
|
|
|
|
|
}
|