Revert my puny changes for now.
Will be fixed in travis-web.
This commit is contained in:
parent
8bde2ddb10
commit
d141256671
|
@ -6,12 +6,11 @@ class Travis::Api::App
|
|||
get '/' do
|
||||
name = params[:branches] ? :find_branches : :find_builds
|
||||
params['ids'] = params['ids'].split(',') if params['ids'].respond_to?(:split)
|
||||
respond_with service(name, params)
|
||||
end
|
||||
|
||||
if params['ids'].blank?
|
||||
respond_with({})
|
||||
else
|
||||
respond_with service(name, params)
|
||||
end
|
||||
get '/:id' do
|
||||
respond_with service(:find_build, params)
|
||||
end
|
||||
|
||||
post '/:id/cancel' do
|
||||
|
|
Loading…
Reference in New Issue
Block a user