You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/foo/bar route is expected to have two middlewares: one inherited from the group, second defined for the route itself.
But when I use chi.Walk function to get all routes with corresponding middlewares /foo/bar route has only one middleware:
chi.Walk(mux, func(method, routestring, handler http.Handler, middlewares...func(http.Handler) http.Handler) error {
fmt.Println(middlewares) // it prints [0x1047fcba0], array with only one element, but we expected two elementsreturnnil
})
The text was updated successfully, but these errors were encountered:
Consider this example:
/foo/bar
route is expected to have two middlewares: one inherited from the group, second defined for the route itself.But when I use
chi.Walk
function to get all routes with corresponding middlewares/foo/bar
route has only one middleware:The text was updated successfully, but these errors were encountered: