OPTIONS registers a new OPTIONS route for a path with matching handler in the router with optional route-level middleware. Panics on error.
(path string, h HandlerFunc, m ...MiddlewareFunc)
| 518 | // OPTIONS registers a new OPTIONS route for a path with matching handler in the |
| 519 | // router with optional route-level middleware. Panics on error. |
| 520 | func (e *Echo) OPTIONS(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo { |
| 521 | return e.Add(http.MethodOptions, path, h, m...) |
| 522 | } |
| 523 | |
| 524 | // PATCH registers a new PATCH route for a path with matching handler in the |
| 525 | // router with optional route-level middleware. Panics on error. |