debian-mirror-gitlab/lib/api/debian_group_packages.rb
2021-01-30 21:13:32 +05:30

21 lines
502 B
Ruby

# frozen_string_literal: true
module API
class DebianGroupPackages < ::API::Base
params do
requires :id, type: String, desc: 'The ID of a group'
end
resource :groups, requirements: API::NAMESPACE_OR_PROJECT_REQUIREMENTS do
before do
not_found! unless ::Feature.enabled?(:debian_packages, user_group)
authorize_read_package!(user_group)
end
namespace ':id/-/packages/debian' do
include DebianPackageEndpoints
end
end
end
end