GetRouteByPath returns the registered route based on the template path (`Route.Tmpl().Src`).
(tmplPath string)
| 1100 | |
| 1101 | // GetRouteByPath returns the registered route based on the template path (`Route.Tmpl().Src`). |
| 1102 | func (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, |
no test coverage detected