StreamBox/internal/handler/health.go

16 lines
275 B
Go

package handler
import (
"github.com/gin-gonic/gin"
"streambox/pkg/response"
)
type HealthHandler struct{}
func NewHealthHandler() *HealthHandler { return &HealthHandler{} }
func (h *HealthHandler) Check(c *gin.Context) {
response.Success(c, gin.H{"status": "ok"})
}