HasAbsoluteRoutes returns true if all the endpoint routes are absolute.
()
| 132 | |
| 133 | // HasAbsoluteRoutes returns true if all the endpoint routes are absolute. |
| 134 | func (e *HTTPEndpointExpr) HasAbsoluteRoutes() bool { |
| 135 | for _, r := range e.Routes { |
| 136 | if !r.IsAbsolute() { |
| 137 | return false |
| 138 | } |
| 139 | } |
| 140 | return true |
| 141 | } |
| 142 | |
| 143 | // PathParams computes a mapped attribute containing the subset of e.Params that |
| 144 | // describe path parameters. |