find_branch(es) expects parameter to be called repository_id

This commit is contained in:
Konstantin Haase 2013-10-03 17:25:40 +02:00
parent 02feeeb0fe
commit 6f72b2cb6b

View File

@ -51,12 +51,12 @@ class Travis::Api::App
end
# Gets list of branches
get '/:id/branches' do
get '/:repository_id/branches' do
respond_with service(:find_branches, params), type: :branches, version: :v2
end
# Gets lastest build on a branch branches
get '/:id/branches/:branch' do
get '/:repository_id/branches/:branch' do
respond_with service(:find_branch, params), type: :branch, version: :v2
end