navidrome/main.go

21 lines
332 B
Go
Raw Normal View History

2016-02-24 00:41:35 +01:00
package main
import (
2016-03-12 03:14:32 +01:00
"fmt"
"github.com/cloudsonic/sonic-server/api"
2017-04-01 15:47:14 +02:00
"github.com/cloudsonic/sonic-server/conf"
2016-02-24 00:41:35 +01:00
)
func main() {
2016-03-30 06:05:57 +02:00
conf.LoadFromLocalFile()
conf.LoadFromFlags()
2020-01-08 16:00:04 +01:00
fmt.Printf("\nCloudSonic Server v%s\n\n", "0.2")
2016-03-30 06:05:57 +02:00
a := App{}
a.Initialize()
a.MountRouter("/rest/", api.Router())
a.Run(":" + conf.Sonic.Port)
2016-02-24 00:41:35 +01:00
}