Revert my puny changes for now.

Will be fixed in travis-web.
This commit is contained in:
Mathias Meyer 2013-08-22 15:21:09 +02:00
parent 8bde2ddb10
commit d141256671

View File

@ -6,12 +6,11 @@ class Travis::Api::App
get '/' do get '/' do
name = params[:branches] ? :find_branches : :find_builds name = params[:branches] ? :find_branches : :find_builds
params['ids'] = params['ids'].split(',') if params['ids'].respond_to?(:split) params['ids'] = params['ids'].split(',') if params['ids'].respond_to?(:split)
if params['ids'].blank?
respond_with({})
else
respond_with service(name, params) respond_with service(name, params)
end end
get '/:id' do
respond_with service(:find_build, params)
end end
post '/:id/cancel' do post '/:id/cancel' do