Skip to content

Commit

Permalink
[fix] fix dpider health-check path fxi #29
Browse files Browse the repository at this point in the history
  • Loading branch information
runs authored and GitHub Enterprise committed Mar 6, 2023
1 parent 3543cb7 commit bf875f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/spider/health/httpserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type CheckServer struct {
}

func NewCheckServer() *CheckServer {
http.HandleFunc("/check", func(w http.ResponseWriter, r *http.Request) {
http.HandleFunc("/health-check", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
_, _ = w.Write([]byte(fmt.Sprintf(`{"code":0, "message": "ok", "data": {"now_time": %s}}`, time.Now().Format(time.RFC3339))))
})
Expand Down

0 comments on commit bf875f2

Please sign in to comment.