Move /jobs/:id/cancel to /jobs

This commit is contained in:
Henrik Hodne 2013-10-27 01:06:26 -05:00
parent 8ff052792c
commit 824f9cd21d

View File

@ -30,15 +30,6 @@ class Travis::Api::App
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
Metriks.meter("api.request.cancel_job").mark
@ -67,5 +58,14 @@ class Travis::Api::App
status 204
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