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

19 lines
429 B
Ruby

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