Welcome to mirror list, hosted at ThFree Co, Russian Federation.

catalog_controller.rb « explore « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3cd3771129eae670ced0b998ab1aadf18b0fddd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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