MCPcopy Create free account
hub / github.com/goadesign/goa / HasAbsoluteRoutes

Method HasAbsoluteRoutes

expr/http_endpoint.go:134–141  ·  view source on GitHub ↗

HasAbsoluteRoutes returns true if all the endpoint routes are absolute.

()

Source from the content-addressed store, hash-verified

132
133// HasAbsoluteRoutes returns true if all the endpoint routes are absolute.
134func (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.

Callers 1

PrepareMethod · 0.95

Calls 1

IsAbsoluteMethod · 0.80

Tested by

no test coverage detected