summaryrefslogtreecommitdiffstats
path: root/gitsrht/blueprints/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitsrht/blueprints/api.py')
-rw-r--r--gitsrht/blueprints/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitsrht/blueprints/api.py b/gitsrht/blueprints/api.py
index 121b7e0..3b1c90a 100644
--- a/gitsrht/blueprints/api.py
+++ b/gitsrht/blueprints/api.py
@@ -85,7 +85,7 @@ def repo_refs_GET(username, reponame):
defaults={"ref": None, "path": ""})
@data.route("/api/<username>/repos/<reponame>/log/<path:ref>",
defaults={"path": ""})
-@data.route("/api/repos/<username>/<reponame>/log/<ref>/<path:path>")
+@data.route("/api/<username>/repos/<reponame>/log/<ref>/<path:path>")
@oauth("data:read")
def repo_commits_GET(username, reponame, ref, path):
user = get_user(username)
@@ -94,7 +94,7 @@ def repo_commits_GET(username, reponame, ref, path):
commits_per_page=50
with GitRepository(repo.path) as git_repo:
if git_repo.is_empty:
- return { "next": next_id, "results": [],
+ return { "next": None, "results": [],
"total": 0, "results_per_page": commits_per_page }
commit, ref, path = lookup_ref(git_repo, ref, path)
start = request.args.get("start")