navidrome/main.go
2020-01-24 01:29:31 -05:00

19 lines
366 B
Go

package main
import (
"github.com/deluan/navidrome/conf"
"github.com/deluan/navidrome/server"
)
func main() {
conf.Load()
if !conf.Server.DevDisableBanner {
server.ShowBanner()
}
a := CreateServer(conf.Server.MusicFolder)
a.MountRouter("/rest", CreateSubsonicAPIRouter())
a.MountRouter("/app", CreateAppRouter("/app"))
a.Run(":" + conf.Server.Port)
}