aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/tree.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/repo/tree.go')
-rw-r--r--routers/api/v1/repo/tree.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/tree.go b/routers/api/v1/repo/tree.go
index 353a996d5b..efb247c19e 100644
--- a/routers/api/v1/repo/tree.go
+++ b/routers/api/v1/repo/tree.go
@@ -56,7 +56,7 @@ func GetTree(ctx *context.APIContext) {
// "404":
// "$ref": "#/responses/notFound"
- sha := ctx.Params(":sha")
+ sha := ctx.PathParam(":sha")
if len(sha) == 0 {
ctx.Error(http.StatusBadRequest, "", "sha not provided")
return