Skip to content

Commit

Permalink
fix: remove hardcoded basepath
Browse files Browse the repository at this point in the history
  • Loading branch information
mgjules committed Apr 11, 2022
1 parent 8d3c36a commit 2d4c1f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions transport/http/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ func (s *Server) handleVersion() gin.HandlerFunc {
}
}

func (s *Server) handleSwagger() gin.HandlerFunc {
docs.SwaggerInfo.Host = s.addr
func (Server) handleSwagger() gin.HandlerFunc {
docs.SwaggerInfo.BasePath = "/"

url := ginSwagger.URL("/swagger/doc.json")
Expand Down

0 comments on commit 2d4c1f4

Please sign in to comment.