From 4113c9c7cb8c01d97ae84a54b12eac03e2a68132 Mon Sep 17 00:00:00 2001 From: mmdoogie <24367033+mmdoogie@users.noreply.github.com> Date: Fri, 11 Feb 2022 12:30:00 -0600 Subject: [PATCH] fix(server): Use relative path to swagger.json Absolute path to file did not respect BASE_PATH from config. --- server/mux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/mux.go b/server/mux.go index 8973010d6..ce4a8a4fd 100644 --- a/server/mux.go +++ b/server/mux.go @@ -149,7 +149,7 @@ func NewMux(opts MuxOpts, service Service) http.Handler { /* Documentation */ router.GET("/swagger.json", Spec()) - router.GET("/docs", Redoc("/swagger.json")) + router.GET("/docs", Redoc("swagger.json")) /* Health */ router.GET("/ping", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) })