mirror of
https://github.com/navidrome/navidrome.git
synced 2025-12-23 23:18:05 -05:00
fix(subsonic): always enable getNowPlaying endpoint regardless of configuration
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
@@ -118,11 +118,7 @@ func (api *Router) routes() http.Handler {
|
|||||||
hr(r, "getAlbumList2", api.GetAlbumList2)
|
hr(r, "getAlbumList2", api.GetAlbumList2)
|
||||||
h(r, "getStarred", api.GetStarred)
|
h(r, "getStarred", api.GetStarred)
|
||||||
h(r, "getStarred2", api.GetStarred2)
|
h(r, "getStarred2", api.GetStarred2)
|
||||||
if conf.Server.EnableNowPlaying {
|
h(r, "getNowPlaying", api.GetNowPlaying)
|
||||||
h(r, "getNowPlaying", api.GetNowPlaying)
|
|
||||||
} else {
|
|
||||||
h501(r, "getNowPlaying")
|
|
||||||
}
|
|
||||||
h(r, "getRandomSongs", api.GetRandomSongs)
|
h(r, "getRandomSongs", api.GetRandomSongs)
|
||||||
h(r, "getSongsByGenre", api.GetSongsByGenre)
|
h(r, "getSongsByGenre", api.GetSongsByGenre)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user