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
|
class Jobs < Grape::API
|
||||||
include PaginationParams
|
include PaginationParams
|
||||||
|
|
||||||
|
before { authenticate! }
|
||||||
|
|
||||||
params do
|
params do
|
||||||
requires :id, type: String, desc: 'The ID of a project'
|
requires :id, type: String, desc: 'The ID of a project'
|
||||||
end
|
end
|
||||||
resource :projects, requirements: API::PROJECT_ENDPOINT_REQUIREMENTS do
|
resource :projects, requirements: API::PROJECT_ENDPOINT_REQUIREMENTS do
|
||||||
before { authenticate! }
|
|
||||||
|
|
||||||
helpers do
|
helpers do
|
||||||
params :optional_scope do
|
params :optional_scope do
|
||||||
optional :scope, types: [String, Array[String]], desc: 'The scope of builds to show',
|
optional :scope, types: [String, Array[String]], desc: 'The scope of builds to show',
|
||||||
|
|
Loading…
Reference in a new issue