mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 04:57:37 +03:00
13 lines
270 B
Go
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")
|
|
}
|