diff options
Diffstat (limited to 'lib/api/npm_project_packages.rb')
-rw-r--r-- | lib/api/npm_project_packages.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/api/npm_project_packages.rb b/lib/api/npm_project_packages.rb index 171a061bf97..61409909b06 100644 --- a/lib/api/npm_project_packages.rb +++ b/lib/api/npm_project_packages.rb @@ -10,6 +10,12 @@ module API render_api_error!(e.message, 400) end + helpers do + def endpoint_scope + :project + end + end + params do requires :id, types: [String, Integer], desc: 'The ID or URL-encoded path of the project' end |