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

Method Add

router.go:27–27  ·  view source on GitHub ↗

Add registers Routable with the Router and returns registered RouteInfo. Router may change Route.Path value in returned RouteInfo.Path. Router generates RouteInfo.Parameters values from Route.Path. Router generates RouteInfo.Name value if it is not provided.

(routable Route)

Source from the content-addressed store, hash-verified

25 // Router generates RouteInfo.Parameters values from Route.Path.
26 // Router generates RouteInfo.Name value if it is not provided.
27 Add(routable Route) (RouteInfo, error)
28
29 // Remove removes route from the Router.
30 //

Implementers 2

DefaultRouterrouter.go
concurrentRouterrouter_concurrent.go

Calls

no outgoing calls