From 2ae4857a6a175e32287e5b18c795d665626accdc Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 31 Mar 2022 00:24:26 +0200 Subject: [PATCH] [ban] Fix: Add missing API docs Signed-off-by: Knut Ahlers --- internal/actors/ban/actor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/actors/ban/actor.go b/internal/actors/ban/actor.go index f2283c2..8c146a5 100644 --- a/internal/actors/ban/actor.go +++ b/internal/actors/ban/actor.go @@ -43,9 +43,11 @@ func Register(args plugins.RegistrationArguments) error { }) args.RegisterAPIRoute(plugins.HTTPRouteRegistrationArgs{ + Description: "Executes a ban of an user in the specified channel", HandlerFunc: handleAPIBan, Method: http.MethodPost, Module: "ban", + Name: "Ban User", Path: "/{channel}/{user}", QueryParams: []plugins.HTTPRouteParamDocumentation{ {