From 7053fa63d4bdd9b0608ec6be86b1d06b297e50f4 Mon Sep 17 00:00:00 2001 From: Caleb Bron Date: Mon, 2 Mar 2020 16:03:33 -0700 Subject: [PATCH] Routes includes apis path prefix --- pkg/server/router/router.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/server/router/router.go b/pkg/server/router/router.go index 806bb49..2b72413 100644 --- a/pkg/server/router/router.go +++ b/pkg/server/router/router.go @@ -34,8 +34,9 @@ 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.Path("/api").Handler(h.K8sProxy) + m.Path("/api").Handler(h.K8sProxy) // Can't just prefix this as UI needs /apikeys path m.PathPrefix("/api/").Handler(h.K8sProxy) + m.PathPrefix("/apis").Handler(h.K8sProxy) m.PathPrefix("/openapi").Handler(h.K8sProxy) m.PathPrefix("/version").Handler(h.K8sProxy) m.NotFoundHandler = h.Next