mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 05:30:26 +00:00
Updating handleIndex in master to list all valid paths.
The list of valid paths is computed from http.ServeMux and restful.WebService. Adding a mux helper - wrapper over mux, that keeps track of the paths handled by mux.
This commit is contained in:
@@ -24,3 +24,9 @@ package api
|
||||
type APIVersions struct {
|
||||
Versions []string `json:"versions"`
|
||||
}
|
||||
|
||||
// RootPaths lists the paths available at root.
|
||||
// For example: "/healthz", "/api".
|
||||
type RootPaths struct {
|
||||
Paths []string `json:"paths"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user