navidrome/main.go
2020-01-09 22:44:45 -05:00

21 lines
393 B
Go

package main
import (
"fmt"
"github.com/astaxie/beego"
"github.com/cloudsonic/sonic-server/api"
"github.com/cloudsonic/sonic-server/conf"
)
func main() {
conf.LoadFromLocalFile()
conf.LoadFromFlags()
fmt.Printf("\nCloudSonic Server v%s (%s mode)\n\n", "0.2", beego.BConfig.RunMode)
a := App{}
a.Initialize()
a.MountRouter("/rest/", api.Router())
a.Run(":" + conf.Sonic.Port)
}