Commit ec7a12da authored by Grzegorz Bizon's avatar Grzegorz Bizon

Revert moving authorization hook in jobs API

parent 3b9f9aa0
...@@ -2,12 +2,12 @@ module API ...@@ -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',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment