NewRouter returns a pointer to a new Router.
(routes map[string]Route, baseURL string)
| 109 | |
| 110 | // NewRouter returns a pointer to a new Router. |
| 111 | func NewRouter(routes map[string]Route, baseURL string) *Router { |
| 112 | return &Router{ |
| 113 | routes: routes, |
| 114 | baseURL: baseURL, |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | // CreateRequest returns a request key'd off of the name given. The params are |
| 119 | // merged into the URL and body is set as the request body. |
no outgoing calls
no test coverage detected