Merge pull request #1 from cbron/api-path-bug

Allow UIs apikeys path by splitting steves api paths
This commit is contained in:
Darren Shepherd 2020-03-02 11:19:05 -07:00 committed by GitHub
commit c76454ac60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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