Any registers a new route for all HTTP methods (supported by Echo) and path with matching handler in the router with optional route-level middleware. Note: this method only adds specific set of supported HTTP methods as handler and is not true "catch-any-arbitrary-method" way of matching requests.
(path string, handler HandlerFunc, middleware ...MiddlewareFunc)
| 561 | // Note: this method only adds specific set of supported HTTP methods as handler and is not true |
| 562 | // "catch-any-arbitrary-method" way of matching requests. |
| 563 | func (e *Echo) Any(path string, handler HandlerFunc, middleware ...MiddlewareFunc) RouteInfo { |
| 564 | return e.Add(RouteAny, path, handler, middleware...) |
| 565 | } |
| 566 | |
| 567 | // Match registers a new route for multiple HTTP methods and path with matching |
| 568 | // handler in the router with optional route-level middleware. Panics on error. |