MCPcopy Create free account
hub / github.com/kataras/iris / GetRouteByPath

Method GetRouteByPath

core/router/api_builder.go:1102–1104  ·  view source on GitHub ↗

GetRouteByPath returns the registered route based on the template path (`Route.Tmpl().Src`).

(tmplPath string)

Source from the content-addressed store, hash-verified

1100
1101// GetRouteByPath returns the registered route based on the template path (`Route.Tmpl().Src`).
1102func (api *APIBuilder) GetRouteByPath(tmplPath string) *Route {
1103 return api.routes.getByPath(tmplPath)
1104}
1105
1106// GetRoutesReadOnly returns the registered routes with "read-only" access,
1107// you cannot and you should not change any of these routes' properties on request state,

Callers 2

HandleDirMethod · 0.95

Calls 1

getByPathMethod · 0.80

Tested by

no test coverage detected