Allow UIs apikeys path by splitting steves api paths

This commit is contained in:
Caleb Bron 2020-03-02 10:48:11 -07:00
parent 6dafed731f
commit b61c701f53

View File

@ -34,7 +34,8 @@ func Routes(h Handlers) http.Handler {
m.Path("/v1/{type:schemas}/{name:.*}").Handler(h.GenericResource)
m.Path("/v1/{type}").Handler(h.GenericResource)
m.Path("/v1/{type}/{name}").Handler(h.GenericResource)
m.PathPrefix("/api").Handler(h.K8sProxy)
m.Path("/api").Handler(h.K8sProxy)
m.PathPrefix("/api/").Handler(h.K8sProxy)
m.PathPrefix("/openapi").Handler(h.K8sProxy)
m.PathPrefix("/version").Handler(h.K8sProxy)
m.NotFoundHandler = h.Next