Browse Source

update

master
dengbiao 1 month ago
parent
commit
0c89b5129e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/router/router.go

+ 1
- 1
app/router/router.go View File

@@ -36,7 +36,7 @@ func Init() *gin.Engine {
requestTls = "https://"
}
r.Use(mw.SwagAuth())
ginSwagger.WrapHandler(swaggerFiles.Handler, ginSwagger.URL(requestTls+c.Request.Host+"/api/api-docs/open.json"))(c)
ginSwagger.WrapHandler(swaggerFiles.Handler, ginSwagger.URL(requestTls+c.GetHeader("X-Host")+"/api/api-docs/open.json"))(c)
})
r.Use(mw.ChangeHeader)



Loading…
Cancel
Save