mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #98455 from hellogdc/myfeature
issues-98409 fix the address of restful-serve-static.go in the commen…
This commit is contained in:
commit
2613b9776f
@ -29,7 +29,7 @@ type Logs struct{}
|
|||||||
// Install func registers the logs handler.
|
// Install func registers the logs handler.
|
||||||
func (l Logs) Install(c *restful.Container) {
|
func (l Logs) Install(c *restful.Container) {
|
||||||
// use restful: ws.Route(ws.GET("/logs/{logpath:*}").To(fileHandler))
|
// use restful: ws.Route(ws.GET("/logs/{logpath:*}").To(fileHandler))
|
||||||
// See github.com/emicklei/go-restful/blob/master/examples/restful-serve-static.go
|
// See github.com/emicklei/go-restful/blob/master/examples/static/restful-serve-static.go
|
||||||
ws := new(restful.WebService)
|
ws := new(restful.WebService)
|
||||||
ws.Path("/logs")
|
ws.Path("/logs")
|
||||||
ws.Doc("get log files")
|
ws.Doc("get log files")
|
||||||
|
Loading…
Reference in New Issue
Block a user