feat: add health check command

This commit is contained in:
Stavros
2025-10-06 21:45:23 +03:00
parent 2f8fa39a9b
commit f0a48cc91c
4 changed files with 112 additions and 4 deletions

View File

@@ -13,8 +13,8 @@ func NewHealthController(router *gin.RouterGroup) *HealthController {
}
func (controller *HealthController) SetupRoutes() {
controller.router.GET("/health", controller.healthHandler)
controller.router.HEAD("/health", controller.healthHandler)
controller.router.GET("/healthz", controller.healthHandler)
controller.router.HEAD("/healthz", controller.healthHandler)
}
func (controller *HealthController) healthHandler(c *gin.Context) {