package app

import (
	"net/http"

	"hm-server/app/main/api/internal/logic/app"
	"hm-server/app/main/api/internal/svc"
	"hm-server/common/result"
)

func HealthCheckHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := app.NewHealthCheckLogic(r.Context(), svcCtx)
		resp, err := l.HealthCheck()
		result.HttpResult(r, w, resp, err)
	}
}
