travis-api/lib/travis/api/app/endpoint/logs.rb
Hiro Asari 477c8b9212 Tweak RemoveLog helper
Leave responding up to the endpoint
Remove unnecessary parameter from the helper's parameter
2014-06-11 20:19:57 -04:00

21 lines
467 B
Ruby

require 'travis/api/app'
class Travis::Api::App
class Endpoint
# Logs are generated by builds.
class Logs < Endpoint
include Helpers
# Fetches a log by its *id*.
get '/:id' do |id|
respond_with service(:find_log, params)
end
# Clears up the content of the log by the *job id*
# Optionally takes parameter *reason*
patch '/:id' do
respond_with patch_log_for_job(params)
end
end
end
end