mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-17 23:58:40 +01:00
Disable Last.FM features based on LastFM.Enabled config option
This commit is contained in:
parent
289da56f64
commit
cfb113bd33
9 changed files with 9 additions and 20 deletions
|
|
@ -76,7 +76,7 @@ func startServer() (func() error, func(err error)) {
|
|||
a := CreateServer(conf.Server.MusicFolder)
|
||||
a.MountRouter("Native API", consts.URLPathNativeAPI, CreateNativeAPIRouter())
|
||||
a.MountRouter("Subsonic API", consts.URLPathSubsonicAPI, CreateSubsonicAPIRouter())
|
||||
if conf.Server.DevEnableScrobble {
|
||||
if conf.Server.LastFM.Enabled {
|
||||
a.MountRouter("LastFM Auth", consts.URLPathNativeAPI+"/lastfm", CreateLastFMRouter())
|
||||
}
|
||||
return a.Run(fmt.Sprintf("%s:%d", conf.Server.Address, conf.Server.Port))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue