mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-19 00:27:02 +01:00
18 lines
327 B
Go
18 lines
327 B
Go
package middleware
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/yusing/godoxy/internal/net/gphttp/middleware/captcha"
|
|
)
|
|
|
|
type hCaptcha struct {
|
|
captcha.HcaptchaProvider
|
|
}
|
|
|
|
func (h *hCaptcha) before(w http.ResponseWriter, r *http.Request) (proceed bool) {
|
|
return captcha.PreRequest(h, w, r)
|
|
}
|
|
|
|
var HCaptcha = NewMiddleware[hCaptcha]()
|