From 6ff6fd7f75f513ecc972b9899e31f8848d9c450f Mon Sep 17 00:00:00 2001 From: Dakota Walsh <101994734+dakota-portainer@users.noreply.github.com> Date: Mon, 11 Dec 2023 10:04:23 +1300 Subject: [PATCH] fix(swagger): custom template create docs EE-6428 (#10807) --- api/http/handler/customtemplates/customtemplate_create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/http/handler/customtemplates/customtemplate_create.go b/api/http/handler/customtemplates/customtemplate_create.go index 798843c82..68b205e5f 100644 --- a/api/http/handler/customtemplates/customtemplate_create.go +++ b/api/http/handler/customtemplates/customtemplate_create.go @@ -152,7 +152,7 @@ func isValidNote(note string) bool { // @success 200 {object} portainer.CustomTemplate // @failure 400 "Invalid request" // @failure 500 "Server error" -// @router /custom_templates/string [post] +// @router /custom_templates/create/string [post] func (handler *Handler) createCustomTemplateFromFileContent(r *http.Request) (*portainer.CustomTemplate, error) { var payload customTemplateFromFileContentPayload err := request.DecodeAndValidateJSONPayload(r, &payload)