docs: add readme

This commit is contained in:
2021-12-14 18:03:47 +03:00
parent e597be41d5
commit 6ce4b88a5a
3 changed files with 17 additions and 2 deletions

View File

@@ -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,
})