17 lines
294 B
Ruby
17 lines
294 B
Ruby
require 'travis/api/app'
|
|
|
|
class Travis::Api::App
|
|
class Endpoint
|
|
class Hooks < Endpoint
|
|
get('/', scope: :private) do
|
|
body all(params).run, type: :hooks
|
|
end
|
|
|
|
put('/:id', scope: :private) do
|
|
update(params[:hook]).run
|
|
204
|
|
end
|
|
end
|
|
end
|
|
end
|