mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Setting WebServicesUrl in swagger config, so that the api docs contain correct basepath
This commit is contained in:
parent
6f43074143
commit
6ddfb10728
@ -429,6 +429,7 @@ func (m *Master) init(c *Config) {
|
|||||||
func (m *Master) InstallSwaggerAPI() {
|
func (m *Master) InstallSwaggerAPI() {
|
||||||
// Enable swagger UI and discovery API
|
// Enable swagger UI and discovery API
|
||||||
swaggerConfig := swagger.Config{
|
swaggerConfig := swagger.Config{
|
||||||
|
WebServicesUrl: m.readWriteServer,
|
||||||
WebServices: m.handlerContainer.RegisteredWebServices(),
|
WebServices: m.handlerContainer.RegisteredWebServices(),
|
||||||
// TODO: Parameterize the path?
|
// TODO: Parameterize the path?
|
||||||
ApiPath: "/swaggerapi/",
|
ApiPath: "/swaggerapi/",
|
||||||
|
Loading…
Reference in New Issue
Block a user