mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 20:52:33 +02:00
17 lines
329 B
Go
17 lines
329 B
Go
package middleware
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/yusing/go-proxy/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]()
|