Merge pull request #83 from travis-ci/hh-cancel-job-wrong-namespac

Move /jobs/:id/cancel to /jobs
This commit is contained in:
Josh Kalderimis 2013-10-27 10:01:02 -07:00
commit 542b1ffc80

View File

@ -30,15 +30,6 @@ class Travis::Api::App
end end
end end
def archive_url(path)
"https://s3.amazonaws.com/#{hostname('archive')}#{path}"
end
def hostname(name)
"#{name}#{'-staging' if Travis.env == 'staging'}.#{Travis.config.host.split('.')[-2, 2].join('.')}"
end
end
post '/:id/cancel' do post '/:id/cancel' do
Metriks.meter("api.request.cancel_job").mark Metriks.meter("api.request.cancel_job").mark
@ -67,5 +58,14 @@ class Travis::Api::App
status 204 status 204
end end
end end
def archive_url(path)
"https://s3.amazonaws.com/#{hostname('archive')}#{path}"
end
def hostname(name)
"#{name}#{'-staging' if Travis.env == 'staging'}.#{Travis.config.host.split('.')[-2, 2].join('.')}"
end
end
end end
end end