wrapper the middleware

This commit is contained in:
Lunny Xiao 2024-04-19 14:03:12 +08:00
parent 07e765c63d
commit e6b860e28f
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 3 additions and 1 deletions

View File

@ -246,7 +246,9 @@ func Routes() *web.Route {
if err != nil {
log.Fatal("GzipHandlerWithOpts failed: %v", err)
}
mid = append(mid, wrapper)
mid = append(mid, func(h http.Handler) http.Handler {
return wrapper(h)
})
}
if setting.Service.EnableCaptcha {