mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-05 21:47:36 +03:00
15 lines
255 B
Go
15 lines
255 B
Go
package controllers
|
|
|
|
import (
|
|
"github.com/astaxie/beego"
|
|
"github.com/deluan/gosonic/scanner"
|
|
)
|
|
|
|
type SyncController struct{ beego.Controller }
|
|
|
|
func (c *SyncController) Get() {
|
|
scanner.StartImport()
|
|
c.Ctx.WriteString("Import started. Check logs")
|
|
}
|
|
|
|
|