mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Disable creation of shares when feature is disabled.
Fix https://github.com/navidrome/navidrome/pull/2106#issuecomment-1404731388
This commit is contained in:
parent
b825d3cfac
commit
e2ea5eba8c
2 changed files with 7 additions and 2 deletions
|
@ -45,7 +45,9 @@ func (n *Router) routes() http.Handler {
|
|||
n.R(r, "/playlist", model.Playlist{}, true)
|
||||
n.R(r, "/transcoding", model.Transcoding{}, conf.Server.EnableTranscodingConfig)
|
||||
n.R(r, "/radio", model.Radio{}, true)
|
||||
n.RX(r, "/share", n.share.NewRepository, true)
|
||||
if conf.Server.DevEnableShare {
|
||||
n.RX(r, "/share", n.share.NewRepository, true)
|
||||
}
|
||||
|
||||
n.addPlaylistTrackRoute(r)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue