Skip to content

Commit

Permalink
feat: health
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Nov 6, 2024
1 parent 43de7e3 commit 788dd4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 788dd4a

Please sign in to comment.