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