Revert moving authorization hook in jobs API

This commit is contained in:
Grzegorz Bizon 2017-09-06 14:45:28 +02:00
parent 3b9f9aa00b
commit ec7a12da81

View file

@ -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',