diff --git a/context.go b/context.go index 063c72f0..3a083264 100644 --- a/context.go +++ b/context.go @@ -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 ***********/ /************************************/