mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 20:01:17 +00:00
[ban] Fix: Add missing API docs
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
a73f27abd0
commit
2ae4857a6a
1 changed files with 2 additions and 0 deletions
|
@ -43,9 +43,11 @@ func Register(args plugins.RegistrationArguments) error {
|
||||||
})
|
})
|
||||||
|
|
||||||
args.RegisterAPIRoute(plugins.HTTPRouteRegistrationArgs{
|
args.RegisterAPIRoute(plugins.HTTPRouteRegistrationArgs{
|
||||||
|
Description: "Executes a ban of an user in the specified channel",
|
||||||
HandlerFunc: handleAPIBan,
|
HandlerFunc: handleAPIBan,
|
||||||
Method: http.MethodPost,
|
Method: http.MethodPost,
|
||||||
Module: "ban",
|
Module: "ban",
|
||||||
|
Name: "Ban User",
|
||||||
Path: "/{channel}/{user}",
|
Path: "/{channel}/{user}",
|
||||||
QueryParams: []plugins.HTTPRouteParamDocumentation{
|
QueryParams: []plugins.HTTPRouteParamDocumentation{
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue