mirror of
https://github.com/gin-gonic/gin.git
synced 2025-04-06 03:57:46 +08:00
feat(router): not obtain middleware in RouteInfo
This commit is contained in:
parent
386d244068
commit
64a7f21cd3
2
gin.go
2
gin.go
@ -63,6 +63,7 @@ type RouteInfo struct {
|
||||
Method string
|
||||
Path string
|
||||
Handler string
|
||||
Handlers HandlersChain
|
||||
HandlerFunc HandlerFunc
|
||||
}
|
||||
|
||||
@ -360,6 +361,7 @@ func iterate(path, method string, routes RoutesInfo, root *node) RoutesInfo {
|
||||
Method: method,
|
||||
Path: path,
|
||||
Handler: nameOfFunction(handlerFunc),
|
||||
Handlers: root.handlers,
|
||||
HandlerFunc: handlerFunc,
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user