diff --git a/gin.go b/gin.go index f9813e1d..b85b5d30 100644 --- a/gin.go +++ b/gin.go @@ -72,6 +72,7 @@ type RouteInfo struct { Method string Path string Handler string + Handlers HandlersChain HandlerFunc HandlerFunc } @@ -393,6 +394,7 @@ func iterate(path, method string, routes RoutesInfo, root *node) RoutesInfo { Method: method, Path: path, Handler: nameOfFunction(handlerFunc), + Handlers: root.handlers, HandlerFunc: handlerFunc, }) }