docs: add readme
This commit is contained in:
@@ -24,15 +24,14 @@ func healthHandler(c *gin.Context) {
|
||||
|
||||
fmt.Println(data.SyncComplete)
|
||||
if !allOk {
|
||||
// choose a better status code if available
|
||||
c.JSON(http.StatusExpectationFailed, gin.H{
|
||||
"ok": false,
|
||||
"message": "could not get node health status",
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"ok": true,
|
||||
"syncComplete": data.SyncComplete,
|
||||
"chainName": data.ChainName,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user