mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
issues-98409 fix the address of restful-serve-static.go in the comment of pkg/routes/logs.go
This commit is contained in:
parent
4fc184f383
commit
22208d2297
@ -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