mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #3416 from nikhiljindal/basePath
Setting WebServicesUrl in swagger config
This commit is contained in:
		@@ -429,7 +429,8 @@ 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{
 | 
				
			||||||
		WebServices: m.handlerContainer.RegisteredWebServices(),
 | 
							WebServicesUrl: m.readWriteServer,
 | 
				
			||||||
 | 
							WebServices:    m.handlerContainer.RegisteredWebServices(),
 | 
				
			||||||
		// TODO: Parameterize the path?
 | 
							// TODO: Parameterize the path?
 | 
				
			||||||
		ApiPath:         "/swaggerapi/",
 | 
							ApiPath:         "/swaggerapi/",
 | 
				
			||||||
		SwaggerPath:     "/swaggerui/",
 | 
							SwaggerPath:     "/swaggerui/",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user