go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

What's the method to obtain the current route in the http middleware?

Open nicklin99 opened this issue 5 months ago • 1 comments
trafficstars

For example, if a route "/from/:name" is registered, how can the middleware obtain the registered route name "/from/:name" when a request enters this route?

nicklin99 avatar Jun 12 '25 16:06 nicklin99

There is no method to get the route associated with current request.

kevwan avatar Jun 14 '25 13:06 kevwan