Merge branch 'master' into mm-fix-gravatar-url

This commit is contained in:
Mathias Meyer 2014-10-02 19:11:41 +02:00
commit b1c0b7eb25

View File

@ -12,7 +12,14 @@ class Travis::Api::App
end end
get '/:id' do get '/:id' do
respond_with service(:find_job, params) job = service(:find_job, params).run
if job && job.repository
respond_with job
else
json = { error: { message: "The job(#{params[:id]}) couldn't be found" } }
status 404
respond_with json
end
end end
post '/:id/cancel' do post '/:id/cancel' do