mirror of https://github.com/k3s-io/k3s
Setting WebServicesUrl in swagger config, so that the api docs contain correct basepath
parent
6f43074143
commit
6ddfb10728
|
@ -429,7 +429,8 @@ func (m *Master) init(c *Config) {
|
|||
func (m *Master) InstallSwaggerAPI() {
|
||||
// Enable swagger UI and discovery API
|
||||
swaggerConfig := swagger.Config{
|
||||
WebServices: m.handlerContainer.RegisteredWebServices(),
|
||||
WebServicesUrl: m.readWriteServer,
|
||||
WebServices: m.handlerContainer.RegisteredWebServices(),
|
||||
// TODO: Parameterize the path?
|
||||
ApiPath: "/swaggerapi/",
|
||||
SwaggerPath: "/swaggerui/",
|
||||
|
|
Loading…
Reference in New Issue