GET registers a new GET route for a path with matching handler in the router with optional route-level middleware. Panics on error.
(path string, h HandlerFunc, m ...MiddlewareFunc)
| 506 | // GET registers a new GET route for a path with matching handler in the router |
| 507 | // with optional route-level middleware. Panics on error. |
| 508 | func (e *Echo) GET(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo { |
| 509 | return e.Add(http.MethodGet, path, h, m...) |
| 510 | } |
| 511 | |
| 512 | // HEAD registers a new HEAD route for a path with matching handler in the |
| 513 | // router with optional route-level middleware. Panics on error. |