MCPcopy
hub / github.com/labstack/echo / AddRoute

Method AddRoute

echo.go:688–690  ·  view source on GitHub ↗

AddRoute registers a new Route with default host Router

(route Route)

Source from the content-addressed store, hash-verified

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

Callers 6

MatchMethod · 0.95
testRouterAPIFunction · 0.45
benchmarkRouterRoutesFunction · 0.45
TestEcho_OnAddRouteFunction · 0.45

Calls 1

addMethod · 0.95

Tested by 5

testRouterAPIFunction · 0.36
benchmarkRouterRoutesFunction · 0.36
TestEcho_OnAddRouteFunction · 0.36