travis-api/lib/travis/api/app/endpoint/artifacts.rb
2012-10-05 13:06:50 +02:00

15 lines
332 B
Ruby

require 'travis/api/app'
class Travis::Api::App
class Endpoint
# Artifacts are generated by builds. Currently we only expose logs as
# artifacts
class Artifacts < Endpoint
# Fetches an artifact by it's *id*.
get '/:id' do |id|
respond_with one(params).run || not_found
end
end
end
end