Show name of router in log

This commit is contained in:
Deluan
2021-05-24 11:55:39 -04:00
parent 1d0e75151a
commit 86d3a219a9
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -73,8 +73,8 @@ func runNavidrome() {
func startServer() (func() error, func(err error)) {
return func() error {
a := CreateServer(conf.Server.MusicFolder)
a.MountRouter(consts.URLPathSubsonicAPI, CreateSubsonicAPIRouter())
a.MountRouter(consts.URLPathUI, CreateAppRouter())
a.MountRouter("WebUI", consts.URLPathUI, CreateAppRouter())
a.MountRouter("Subsonic API", consts.URLPathSubsonicAPI, CreateSubsonicAPIRouter())
return a.Run(fmt.Sprintf("%s:%d", conf.Server.Address, conf.Server.Port))
}, func(err error) {
if err != nil {