[msgformat] Fix: Add missing API docs

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-03-31 00:27:52 +02:00
parent 2ae4857a6a
commit 56082ad577
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -15,9 +15,11 @@ func Register(args plugins.RegistrationArguments) error {
formatMessage = args.FormatMessage formatMessage = args.FormatMessage
args.RegisterAPIRoute(plugins.HTTPRouteRegistrationArgs{ args.RegisterAPIRoute(plugins.HTTPRouteRegistrationArgs{
Description: "Takes the given template and renders it using the same renderer as messages in the channel are",
HandlerFunc: handleFormattedMessage, HandlerFunc: handleFormattedMessage,
Method: http.MethodGet, Method: http.MethodGet,
Module: "msgformat", Module: "msgformat",
Name: "Format Message",
Path: "/format", Path: "/format",
QueryParams: []plugins.HTTPRouteParamDocumentation{ QueryParams: []plugins.HTTPRouteParamDocumentation{
{ {