2020-11-11 07:09:06 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
module API
|
|
|
|
class NpmInstancePackages < ::API::Base
|
|
|
|
helpers ::API::Helpers::Packages::Npm
|
|
|
|
|
|
|
|
feature_category :package_registry
|
2022-05-06 17:08:35 -04:00
|
|
|
urgency :low
|
2020-11-11 07:09:06 -05:00
|
|
|
|
|
|
|
rescue_from ActiveRecord::RecordInvalid do |e|
|
|
|
|
render_api_error!(e.message, 400)
|
|
|
|
end
|
|
|
|
|
|
|
|
namespace 'packages/npm' do
|
|
|
|
include ::API::Concerns::Packages::NpmEndpoints
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|