debian-mirror-gitlab/app/controllers/groups/harbor/repositories_controller.rb
2022-05-07 20:08:51 +05:30

24 lines
508 B
Ruby

# frozen_string_literal: true
module Groups
module Harbor
class RepositoriesController < Groups::ApplicationController
feature_category :integrations
before_action :harbor_registry_enabled!
before_action do
push_frontend_feature_flag(:harbor_registry_integration)
end
def show
render :index
end
private
def harbor_registry_enabled!
render_404 unless Feature.enabled?(:harbor_registry_integration)
end
end
end
end