add /repos/:owner_name, fixes travis-ci/travis-ci#1496

This commit is contained in:
Konstantin Haase 2013-10-15 12:24:07 +02:00
parent 714fe3f617
commit 096d08c102

View File

@ -18,6 +18,14 @@ class Travis::Api::App
end end
end end
# Retrieves repositories for a given owner.
get '/:owner_name' do
pass if params[:owner_name] =~ /^\d+$/ # so we don't capture '/:id'
prefer_follower do
respond_with service(:find_repos, params)
end
end
# Gets the repository with the given id. # Gets the repository with the given id.
# #
# ### Response # ### Response