diff --git a/cmd/server.go b/cmd/server.go index 4983af1d..1d654ffe 100755 --- a/cmd/server.go +++ b/cmd/server.go @@ -44,6 +44,10 @@ func NewRouter() *gin.Engine { ctx.JSON(http.StatusOK, gin.H{"message": "Welcome to yDaemon"}) }) + router.GET(`/health`, func(ctx *gin.Context) { + ctx.JSON(http.StatusOK, gin.H{"status": "ok", "timestamp": time.Now().Format(time.RFC3339)}) + }) + // Vaults section { c := vaults.Controller{}