mirror of
https://github.com/navidrome/navidrome.git
synced 2024-09-10 11:32:48 +02:00
16 lines
255 B
Go
16 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")
|
|
}
|
|
|
|
|