Add ability to search for repos by their full path

This commit is contained in:
Joseph Schorr 2013-10-01 17:02:49 -04:00
parent 76d9cbc14f
commit d09c402675
3 changed files with 19 additions and 5 deletions

View file

@ -43,7 +43,7 @@ function HeaderCtrl($scope, UserService) {
$('#repoSearch').typeahead({
name: 'repositories',
remote: {
url: '/api/repository/find/%QUERY',
url: '/api/find/repository?query=%QUERY',
filter: function(data) {
var datums = [];
for (var i = 0; i < data.repositories.length; ++i) {