|
|
@@ -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) |
|
|
|
|
|
|
|