Skip to content

Commit

Permalink
Setting WebServicesUrl in swagger config, so that the api docs contai…
Browse files Browse the repository at this point in the history
…n correct basepath
  • Loading branch information
nikhiljindal committed Jan 12, 2015
1 parent 6f43074 commit 6ddfb10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/master/master.go
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down

0 comments on commit 6ddfb10

Please sign in to comment.