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

Method GetRouteReadOnlyByPath

core/router/api_builder.go:1140–1147  ·  view source on GitHub ↗

GetRouteReadOnlyByPath returns the registered read-only route based on the template path (`Route.Tmpl().Src`).

(tmplPath string)

Source from the content-addressed store, hash-verified

1138
1139// GetRouteReadOnlyByPath returns the registered read-only route based on the template path (`Route.Tmpl().Src`).
1140func (api *APIBuilder) GetRouteReadOnlyByPath(tmplPath string) context.RouteReadOnly {
1141 r := api.GetRouteByPath(tmplPath)
1142 if r == nil {
1143 return nil
1144 }
1145
1146 return r.ReadOnly
1147}
1148
1149// SetRoutesNoLog disables (true) the verbose logging for the next registered
1150// routes under this Party and its children.

Callers

nothing calls this directly

Calls 1

GetRouteByPathMethod · 0.95

Tested by

no test coverage detected