mirror of
https://github.com/niusmallnan/steve.git
synced 2025-08-29 18:13:56 +00:00
Merge pull request #1 from cbron/api-path-bug
Allow UIs apikeys path by splitting steves api paths
This commit is contained in:
commit
c76454ac60
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user