2020-07-21 08:09:30 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Groups
|
|
|
|
class PackagesController < Groups::ApplicationController
|
|
|
|
before_action :verify_packages_enabled!
|
|
|
|
|
2020-10-06 08:08:38 -04:00
|
|
|
feature_category :package_registry
|
2022-05-06 17:08:35 -04:00
|
|
|
urgency :low
|
2020-10-06 08:08:38 -04:00
|
|
|
|
2022-01-14 07:18:55 -05:00
|
|
|
# The show action renders index to allow frontend routing to work on page refresh
|
|
|
|
def show
|
|
|
|
render :index
|
|
|
|
end
|
|
|
|
|
2020-07-21 08:09:30 -04:00
|
|
|
private
|
|
|
|
|
|
|
|
def verify_packages_enabled!
|
|
|
|
render_404 unless group.packages_feature_enabled?
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|