From 8d3facf0ddb4004e90f4c1e487c1c7f6ac9c79bb Mon Sep 17 00:00:00 2001 From: Jiho Andrew Lee Date: Mon, 7 Sep 2026 17:36:36 +0900 Subject: [PATCH] Update server/nativeapi/podcasts.go Co-authored-by: strix-security[bot] <257889806+strix-security[bot]@users.noreply.github.com> --- server/nativeapi/podcasts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/nativeapi/podcasts.go b/server/nativeapi/podcasts.go index a1599fdaf..a8e7561c9 100644 --- a/server/nativeapi/podcasts.go +++ b/server/nativeapi/podcasts.go @@ -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))