package main import ( "net/http" "time" "github.com/labstack/echo/v4" ) // @Summary Health check // @Description Get server health status // @Tags Health // @Accept json // @Produce json // @Success 200 {object} HealthResponse // @Router /health [get] func healthHandler(c echo.Context) error { return c.JSON(http.StatusOK, HealthResponse{ Status: "healthy", Time: time.Now().Unix(), Version: "1.0.0", }) } // HealthResponse represents the health check response type HealthResponse struct { Status string `json:"status"` Time int64 `json:"time"` Version string `json:"version"` }