POST registers a new POST route for a path with matching handler in the router with optional route-level middleware. Panics on error.
(path string, h HandlerFunc, m ...MiddlewareFunc)
| 530 | // POST registers a new POST route for a path with matching handler in the |
| 531 | // router with optional route-level middleware. Panics on error. |
| 532 | func (e *Echo) POST(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo { |
| 533 | return e.Add(http.MethodPost, path, h, m...) |
| 534 | } |
| 535 | |
| 536 | // PUT registers a new PUT route for a path with matching handler in the |
| 537 | // router with optional route-level middleware. Panics on error. |