GetVersionEndpoint provides the url to contact the config API
()
| 293 | |
| 294 | // GetVersionEndpoint provides the url to contact the config API |
| 295 | func (c *ServerConfig) getConfigEndpoint() string { |
| 296 | nurl := *c.ParsedEndpoint |
| 297 | nurl.Path = path.Join(nurl.Path, c.APIPaths.Config) |
| 298 | return nurl.String() |
| 299 | } |
| 300 | |
| 301 | // ParseEndpoint ensures the endpoint is valid. |
| 302 | func (c *ServerConfig) ParseEndpoint() error { |
no test coverage detected