feat: add healthcheck

This commit is contained in:
Stavros
2025-01-19 16:41:04 +02:00
parent 78bc3e9c9a
commit 0becda9e2f

View File

@@ -150,6 +150,7 @@ func Run(config types.Config, users types.UserList) {
"status": 200,
"isLoggedIn": true,
"username": usernameString,
"version": assets.Version,
})
return
}
@@ -160,6 +161,14 @@ func Run(config types.Config, users types.UserList) {
"status": 200,
"isLoggedIn": false,
"username": "",
"version": assets.Version,
})
})
router.GET("/api/healthcheck", func (c *gin.Context) {
c.JSON(200, gin.H{
"status": 200,
"message": "OK",
})
})