Fix startup order, setting LogLevel

This commit is contained in:
Deluan 2020-01-20 17:35:04 -05:00
parent 1e582bec5c
commit 28cd3ec3e4
4 changed files with 12 additions and 7 deletions

View file

@ -2,11 +2,16 @@ package main
import (
"github.com/cloudsonic/sonic-server/conf"
"github.com/cloudsonic/sonic-server/server"
)
func main() {
conf.Load()
if !conf.Sonic.DevDisableBanner {
server.ShowBanner()
}
a := CreateServer(conf.Sonic.MusicFolder)
a.MountRouter("/rest", CreateSubsonicAPIRouter())
a.MountRouter("/app", CreateAppRouter("/app"))