blob: 2e3b48360bf781d19750e5ebdd1212adf0716dc6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)))
}
|