fix(server): Use relative path to swagger.json

Absolute path to file did not respect BASE_PATH from config.
pull/5862/head
mmdoogie 2022-02-11 12:30:00 -06:00
parent 66a2c3ae95
commit 4113c9c7cb
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ func NewMux(opts MuxOpts, service Service) http.Handler {
/* Documentation */ /* Documentation */
router.GET("/swagger.json", Spec()) router.GET("/swagger.json", Spec())
router.GET("/docs", Redoc("/swagger.json")) router.GET("/docs", Redoc("swagger.json"))
/* Health */ /* Health */
router.GET("/ping", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) }) router.GET("/ping", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) })