navidrome/main.go

14 lines
271 B
Go
Raw Normal View History

2016-02-23 18:41:35 -05:00
package main
import (
2017-04-01 09:47:14 -04:00
"github.com/cloudsonic/sonic-server/conf"
2016-02-23 18:41:35 -05:00
)
func main() {
2020-01-08 10:25:23 -05:00
conf.Load()
2016-03-30 00:05:57 -04:00
2020-01-19 19:34:54 -05:00
a := CreateServer(conf.Sonic.MusicFolder)
a.MountRouter("/rest", CreateSubsonicAPIRouter())
a.MountRouter("/app", CreateAppRouter("/app"))
a.Run(":" + conf.Sonic.Port)
2016-02-23 18:41:35 -05:00
}