aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/misc/label_templates.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/misc/label_templates.go')
-rw-r--r--routers/api/v1/misc/label_templates.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/misc/label_templates.go b/routers/api/v1/misc/label_templates.go
index cc11f37626..f105b4c684 100644
--- a/routers/api/v1/misc/label_templates.go
+++ b/routers/api/v1/misc/label_templates.go
@@ -48,7 +48,7 @@ func GetLabelTemplate(ctx *context.APIContext) {
// "$ref": "#/responses/LabelTemplateInfo"
// "404":
// "$ref": "#/responses/notFound"
- name := util.PathJoinRelX(ctx.Params("name"))
+ name := util.PathJoinRelX(ctx.PathParam("name"))
labels, err := repo_module.LoadTemplateLabelsByDisplayName(name)
if err != nil {