mirror of
https://github.com/rancher/steve.git
synced 2025-09-18 16:39:07 +00:00
Make / and /v1 work
This commit is contained in:
@@ -36,6 +36,7 @@ func NewHandler(cfg *rest.Config, sf schema.Factory) (http.Handler, error) {
|
||||
K8sResource: a.apiHandler(k8sAPI),
|
||||
GenericResource: a.apiHandler(nil),
|
||||
K8sProxy: proxy,
|
||||
APIRoot: a.apiHandler(apiRoot),
|
||||
}), nil
|
||||
}
|
||||
|
||||
|
@@ -36,3 +36,7 @@ func k8sAPI(sf schema.Factory, apiOp *types.APIRequest) {
|
||||
apiOp.Namespaces = []string{namespace}
|
||||
}
|
||||
}
|
||||
|
||||
func apiRoot(sf schema.Factory, apiOp *types.APIRequest) {
|
||||
apiOp.Type = "apiRoot"
|
||||
}
|
||||
|
Reference in New Issue
Block a user