mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
1. Adding swagger-ui/dist files.
2. Updating datafile.go to include it. 3. Updating master,go to use it.
This commit is contained in:
parent
cfee8f1355
commit
f12f5ed34b
@ -414,9 +414,8 @@ func (m *Master) InstallSwaggerAPI() {
|
|||||||
WebServices: m.handlerContainer.RegisteredWebServices(),
|
WebServices: m.handlerContainer.RegisteredWebServices(),
|
||||||
// TODO: Parameterize the path?
|
// TODO: Parameterize the path?
|
||||||
ApiPath: "/swaggerapi/",
|
ApiPath: "/swaggerapi/",
|
||||||
// TODO: Distribute UI javascript and enable the UI
|
SwaggerPath: "/swaggerui/",
|
||||||
//SwaggerPath: "/swaggerui/",
|
SwaggerFilePath: "/static/swagger-ui/",
|
||||||
//SwaggerFilePath: "/srv/apiserver/swagger/dist"
|
|
||||||
}
|
}
|
||||||
swagger.RegisterSwaggerService(swaggerConfig, m.handlerContainer)
|
swagger.RegisterSwaggerService(swaggerConfig, m.handlerContainer)
|
||||||
}
|
}
|
||||||
|
13603
pkg/ui/datafile.go
13603
pkg/ui/datafile.go
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user