Skip to content

[fix] fix dpider health-check path fxi #29 #31

Merged
merged 1 commit into from
Mar 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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