This commit is contained in:
2023-08-08 16:10:31 +02:00
parent e165f0f62f
commit e10140e143
2 changed files with 4 additions and 3 deletions

View File

@@ -149,11 +149,12 @@ func (w *GinWrapper) NoRoute(handler WHandlerFunc) {
if w.bufferBody {
handlers = append(handlers, BodyBuffer)
}
handlers = append(handlers, Wrap(w, handler))
middlewareNames := langext.ArrMap(handlers, func(v gin.HandlerFunc) string { return nameOfFunction(v) })
handlerName := nameOfFunction(handler)
handlers = append(handlers, Wrap(w, handler))
w.engine.NoRoute(handlers...)
w.routeSpecs = append(w.routeSpecs, ginRouteSpec{