diff --git a/gin.go b/gin.go index 0761c14d..a85e1860 100644 --- a/gin.go +++ b/gin.go @@ -71,6 +71,7 @@ type RouteInfo struct { Method string Path string Handler string + Handlers HandlersChain HandlerFunc HandlerFunc } @@ -379,6 +380,7 @@ func iterate(path, method string, routes RoutesInfo, root *node) RoutesInfo { Method: method, Path: path, Handler: nameOfFunction(handlerFunc), + Handlers: root.handlers, HandlerFunc: handlerFunc, }) }