package agent

import (
	"net/http"

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

func GetAgentProductConfigHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := agent.NewGetAgentProductConfigLogic(r.Context(), svcCtx)
		resp, err := l.GetAgentProductConfig()
		result.HttpResult(r, w, resp, err)
	}
}
