From 56082ad57764787d13f7298bf12675eeecf47442 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 31 Mar 2022 00:27:52 +0200 Subject: [PATCH] [msgformat] Fix: Add missing API docs Signed-off-by: Knut Ahlers --- internal/apimodules/msgformat/msgformat.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/apimodules/msgformat/msgformat.go b/internal/apimodules/msgformat/msgformat.go index e8d010d..db59cbc 100644 --- a/internal/apimodules/msgformat/msgformat.go +++ b/internal/apimodules/msgformat/msgformat.go @@ -15,9 +15,11 @@ func Register(args plugins.RegistrationArguments) error { formatMessage = args.FormatMessage args.RegisterAPIRoute(plugins.HTTPRouteRegistrationArgs{ + Description: "Takes the given template and renders it using the same renderer as messages in the channel are", HandlerFunc: handleFormattedMessage, Method: http.MethodGet, Module: "msgformat", + Name: "Format Message", Path: "/format", QueryParams: []plugins.HTTPRouteParamDocumentation{ {