Skip to content

Commit

Permalink
fix failed to load API definition (#125) (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaoz committed Apr 30, 2021
1 parent 068ccf4 commit 8d947c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (s *RestServer) StartHttpServer() {
APIPath: "/apidocs.json",
}
restful.DefaultContainer.Add(restfulspec.NewOpenAPIService(specConfig))
swaggerFile = fmt.Sprintf("http://%s:%d/apidocs.json", s.HttpHost, s.HttpPort)
swaggerFile = specConfig.APIPath
http.HandleFunc(apiDocsPath, handler)
// register prometheus
http.Handle("/metrics", promhttp.Handler())
Expand Down

0 comments on commit 8d947c5

Please sign in to comment.