mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +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(),
|
||||
// TODO: Parameterize the path?
|
||||
ApiPath: "/swaggerapi/",
|
||||
// TODO: Distribute UI javascript and enable the UI
|
||||
//SwaggerPath: "/swaggerui/",
|
||||
//SwaggerFilePath: "/srv/apiserver/swagger/dist"
|
||||
SwaggerPath: "/swaggerui/",
|
||||
SwaggerFilePath: "/static/swagger-ui/",
|
||||
}
|
||||
swagger.RegisterSwaggerService(swaggerConfig, m.handlerContainer)
|
||||
}
|
||||
|
13621
pkg/ui/datafile.go
13621
pkg/ui/datafile.go
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user