twitch-bot/internal/template/api/api.go
Knut Ahlers 499313fbe6
[templating] Add jsonAPI template function
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-09-26 23:32:48 +02:00

9 lines
224 B
Go

package api
import "github.com/Luzifer/twitch-bot/plugins"
func Register(args plugins.RegistrationArguments) error {
args.RegisterTemplateFunction("jsonAPI", plugins.GenericTemplateFunctionGetter(jsonAPI))
return nil
}