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:
Kubernetes Prow Robot 2021-02-01 20:40:28 -08:00 committed by GitHub
commit 2613b9776f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ type Logs struct{}
// Install func registers the logs handler.
func (l Logs) Install(c *restful.Container) {
// 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.Path("/logs")
ws.Doc("get log files")