diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-10-08 03:43:08 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-10-08 03:50:53 +0300 |
commit | e849e705c30cceec3cf7336a21bed96c8a911e90 (patch) | |
tree | 93f559bcd4cf3e53193930d112e564a2b7462ac8 /pkg/handler/captcha/handler.go | |
parent | 3ee654f6fb3cdf119630bfba8066c96ec26428c3 (diff) |
Добавил рейтинг
Добавил страницу топа
Добавил rss/xml/json feed
Diffstat (limited to 'pkg/handler/captcha/handler.go')
-rw-r--r-- | pkg/handler/captcha/handler.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pkg/handler/captcha/handler.go b/pkg/handler/captcha/handler.go new file mode 100644 index 0000000..2e3b483 --- /dev/null +++ b/pkg/handler/captcha/handler.go @@ -0,0 +1,17 @@ +package captcha + +import ( + "github.com/labstack/echo/v4" + "github.com/ssoda/captcha" +) + +type Handler struct{} + +// NewHandler returns new Handler. +func NewHandler() *Handler { + return &Handler{} +} + +func (h *Handler) Register(g *echo.Group) { + g.GET("/*", echo.WrapHandler(captcha.Server(400, 65))) +} |