Merge 25dd285539d75cba8da6a34b4c2ff3bebbad49e5 into 500ebd9ea866c57427aeaddc31f374adedd4084b

This commit is contained in:
Jorrit Klein Bramel 2018-09-04 03:24:52 +00:00 committed by GitHub
commit ea91a522fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ***********/
/************************************/