AddRoute registers a new Route with default host Router
(route Route)
| 686 | |
| 687 | // AddRoute registers a new Route with default host Router |
| 688 | func (e *Echo) AddRoute(route Route) (RouteInfo, error) { |
| 689 | return e.add(route) |
| 690 | } |
| 691 | |
| 692 | func (e *Echo) add(route Route) (RouteInfo, error) { |
| 693 | if e.OnAddRoute != nil { |