Skip to content

Commit

Permalink
fix: swagger URL
Browse files Browse the repository at this point in the history
  • Loading branch information
mgjules committed Apr 11, 2022
1 parent 982fe90 commit 8d3c36a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport/http/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (s *Server) handleSwagger() gin.HandlerFunc {
docs.SwaggerInfo.Host = s.addr
docs.SwaggerInfo.BasePath = "/"

url := ginSwagger.URL("http://" + s.addr + "/swagger/doc.json")
url := ginSwagger.URL("/swagger/doc.json")

return ginSwagger.WrapHandler(swaggerFiles.Handler, url)
}
Expand Down

0 comments on commit 8d3c36a

Please sign in to comment.