mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 01:57:55 +08:00
Merge 25dd285539d75cba8da6a34b4c2ff3bebbad49e5 into 500ebd9ea866c57427aeaddc31f374adedd4084b
This commit is contained in:
commit
ea91a522fe
@ -95,6 +95,12 @@ func (c *Context) Handler() HandlerFunc {
|
||||
return c.handlers.Last()
|
||||
}
|
||||
|
||||
// Routes returns a slice of registered routes, including some useful information, such as:
|
||||
// the http method, path and the handler name.
|
||||
func (c *Context) Routes() RoutesInfo {
|
||||
return c.engine.Routes()
|
||||
}
|
||||
|
||||
/************************************/
|
||||
/*********** FLOW CONTROL ***********/
|
||||
/************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user