feat: integrated swagger

This commit is contained in:
2025-06-18 03:14:51 +03:00
parent 9e8dd9bf2f
commit f20b631628
8 changed files with 218 additions and 9 deletions

View File

@@ -6,6 +6,16 @@ import (
"github.com/gin-gonic/gin"
)
type HealthStatus struct {
Healthy bool `json:"healthy"`
}
// @Summary get service health status
// @Schemes
// @Accept json
// @Produce json
// @Success 200 {object} HealthStatus "desc"
// @Router /service/health [get]
func HealthCheck(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"healthy": true})
}