mirror of https://github.com/portainer/portainer
fix(swagger): custom template create docs EE-6428 (#10807)
parent
41b73fe2ae
commit
6ff6fd7f75
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue