Skip to content

Commit

Permalink
simplified the healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Sep 12, 2023
1 parent 690661c commit da2b733
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ func main() {
})

mux.HandleFunc("/health", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
_ = json.NewEncoder(w).Encode(map[string]string{"status": "healthy"})
_, _ = w.Write([]byte("healthy"))
})

static, _ := fs.Sub(swagfs, "swagger")
Expand Down

0 comments on commit da2b733

Please sign in to comment.