fix(server): Use relative path to swagger.json
Absolute path to file did not respect BASE_PATH from config.pull/5862/head
parent
66a2c3ae95
commit
4113c9c7cb
|
@ -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) })
|
||||||
|
|
Loading…
Reference in New Issue