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

@ -67,8 +67,9 @@ def create_repo_api():
pass
@app.route('/api/repository/find/<prefix>', methods=['GET'])
def match_repos_api(prefix):
@app.route('/api/find/repository', methods=['GET'])
def match_repos_api():
prefix = request.args.get('query', '')
def repo_view(repo):
return {
'namespace': repo.namespace,