We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 038ee0b commit 14f3546Copy full SHA for 14f3546
main.go
@@ -755,8 +755,9 @@ func configureAsHTTPServer() {
755
}))
756
757
if config.Setting.SWAGGER.Enable {
758
+ prefix := config.Setting.MAIN_SETTINGS.APIPrefix
759
//e.GET("/swagger/*", echoSwagger.WrapHandler)
- e.GET("/doc/api/json", func(c echo.Context) error {
760
+ e.GET(prefix+"/doc/api/json", func(c echo.Context) error {
761
762
logger.Debug("Middle swagger ware: ", c.Request().RequestURI)
763
dataJson, err := os.ReadFile(config.Setting.SWAGGER.ApiJson)
0 commit comments