Merge branch 'master' into mm-fix-gravatar-url
This commit is contained in:
commit
b1c0b7eb25
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user