mirror of
https://github.com/niusmallnan/steve.git
synced 2025-07-17 16:11:15 +00:00
Allow UIs apikeys path by splitting steves api paths
This commit is contained in:
parent
6dafed731f
commit
b61c701f53
@ -34,7 +34,8 @@ func Routes(h Handlers) http.Handler {
|
|||||||
m.Path("/v1/{type:schemas}/{name:.*}").Handler(h.GenericResource)
|
m.Path("/v1/{type:schemas}/{name:.*}").Handler(h.GenericResource)
|
||||||
m.Path("/v1/{type}").Handler(h.GenericResource)
|
m.Path("/v1/{type}").Handler(h.GenericResource)
|
||||||
m.Path("/v1/{type}/{name}").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("/openapi").Handler(h.K8sProxy)
|
||||||
m.PathPrefix("/version").Handler(h.K8sProxy)
|
m.PathPrefix("/version").Handler(h.K8sProxy)
|
||||||
m.NotFoundHandler = h.Next
|
m.NotFoundHandler = h.Next
|
||||||
|
Loading…
Reference in New Issue
Block a user