aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/notes.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/repo/notes.go')
-rw-r--r--routers/api/v1/repo/notes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/notes.go b/routers/api/v1/repo/notes.go
index a4a1d4eab7..8689d25e15 100644
--- a/routers/api/v1/repo/notes.go
+++ b/routers/api/v1/repo/notes.go
@@ -52,7 +52,7 @@ func GetNote(ctx *context.APIContext) {
// "404":
// "$ref": "#/responses/notFound"
- sha := ctx.Params(":sha")
+ sha := ctx.PathParam(":sha")
if !git.IsValidRefPattern(sha) {
ctx.Error(http.StatusUnprocessableEntity, "no valid ref or sha", fmt.Sprintf("no valid ref or sha: %s", sha))
return