diff --git a/ginext/routes.go b/ginext/routes.go index f5c9af5..90bf072 100644 --- a/ginext/routes.go +++ b/ginext/routes.go @@ -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{ diff --git a/goextVersion.go b/goextVersion.go index 38e7e14..4e57be4 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.230" +const GoextVersion = "0.0.231" -const GoextVersionTimestamp = "2023-08-08T16:09:02+0200" +const GoextVersionTimestamp = "2023-08-08T16:10:31+0200"