Playlists: Merge the frontend vs backend k8s feature flags (#77875)

This commit is contained in:
Ryan McKinley
2023-11-08 21:14:05 +02:00
committed by GitHub
parent 6ab79a9f2f
commit 4b5310dae7
7 changed files with 7 additions and 21 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ import (
func (hs *HTTPServer) registerPlaylistAPI(apiRoute routing.RouteRegister) {
// Register the actual handlers
apiRoute.Group("/playlists", func(playlistRoute routing.RouteRegister) {
if hs.Features.IsEnabled(featuremgmt.FlagKubernetesPlaylistsAPI) {
if hs.Features.IsEnabled(featuremgmt.FlagKubernetesPlaylists) {
// Use k8s client to implement legacy API
handler := newPlaylistK8sHandler(hs)
playlistRoute.Get("/", handler.searchPlaylists)