diff options
Diffstat (limited to 'app/controllers/explore/catalog_controller.rb')
-rw-r--r-- | app/controllers/explore/catalog_controller.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app/controllers/explore/catalog_controller.rb b/app/controllers/explore/catalog_controller.rb new file mode 100644 index 00000000000..3cd3771129e --- /dev/null +++ b/app/controllers/explore/catalog_controller.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +module Explore + class CatalogController < Explore::ApplicationController + feature_category :pipeline_composition + before_action :check_feature_flag + + def show; end + + def index + render 'show' + end + + private + + def check_feature_flag + render_404 unless Feature.enabled?(:global_ci_catalog, current_user) + end + end +end |