Add ability to search for repos by their full path
This commit is contained in:
parent
76d9cbc14f
commit
d09c402675
3 changed files with 19 additions and 5 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue