Revert moving authorization hook in jobs API
This commit is contained in:
parent
3b9f9aa00b
commit
ec7a12da81
1 changed files with 2 additions and 2 deletions
|
@ -2,12 +2,12 @@ module API
|
|||
class Jobs < Grape::API
|
||||
include PaginationParams
|
||||
|
||||
before { authenticate! }
|
||||
|
||||
params do
|
||||
requires :id, type: String, desc: 'The ID of a project'
|
||||
end
|
||||
resource :projects, requirements: API::PROJECT_ENDPOINT_REQUIREMENTS do
|
||||
before { authenticate! }
|
||||
|
||||
helpers do
|
||||
params :optional_scope do
|
||||
optional :scope, types: [String, Array[String]], desc: 'The scope of builds to show',
|
||||
|
|
Loading…
Reference in a new issue