mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-10 03:17:27 +02:00
Update server/nativeapi/podcasts.go
Co-authored-by: strix-security[bot] <257889806+strix-security[bot]@users.noreply.github.com>
This commit is contained in:
parent
e66e53c5dd
commit
8d3facf0dd
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ func (api *Router) addPodcastRoute(r chi.Router) {
|
|||
}
|
||||
r.Route("/podcast", func(r chi.Router) {
|
||||
r.Get("/", rest.GetAll(constructor))
|
||||
r.Get("/preview", api.podcastPreview)
|
||||
r.With(adminOnlyMiddleware).Get("/preview", api.podcastPreview)
|
||||
r.Route("/{id}", func(r chi.Router) {
|
||||
r.Use(server.URLParamsMiddleware)
|
||||
r.Get("/", rest.Get(constructor))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue