travis-api/lib/travis/api/app/endpoint/hooks.rb
2012-09-26 12:33:51 +02:00

20 lines
463 B
Ruby

require 'travis/api/app'
class Travis::Api::App
class Endpoint
# TODO: Add documentation.
class Hooks < Endpoint
# TODO: Add implementation and documentation.
# TODO scope: :private
get('/') do
body service(:hooks).find_all(params), type: :hooks
end
# TODO: Add implementation and documentation.
put('/:id', scope: :private) do
body service(:hooks).update(params[:hook])
end
end
end
end