Skip to content

Commit

Permalink
(feat): /health endpoint. Support CORS and align headers with other e…
Browse files Browse the repository at this point in the history
…ndpoints (#749)
  • Loading branch information
hsanjuan committed Sep 9, 2020
1 parent 79c9572 commit e9c8a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func New(ctx context.Context, c client.Client, version string, logger log.Logger
mux.HandleFunc("/public/latest", withCommonHeaders(version, handler.LatestRand))
mux.HandleFunc("/public/", withCommonHeaders(version, handler.PublicRand))
mux.HandleFunc("/info", withCommonHeaders(version, handler.ChainInfo))
mux.HandleFunc("/health", handler.Health)
mux.HandleFunc("/health", withCommonHeaders(version, handler.Health))

instrumented := promhttp.InstrumentHandlerCounter(
metrics.HTTPCallCounter,
Expand Down

0 comments on commit e9c8a58

Please sign in to comment.