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