GetRouteReadOnlyByPath returns the registered read-only route based on the template path (`Route.Tmpl().Src`).
(tmplPath string)
| 1138 | |
| 1139 | // GetRouteReadOnlyByPath returns the registered read-only route based on the template path (`Route.Tmpl().Src`). |
| 1140 | func (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. |
nothing calls this directly
no test coverage detected