package app

import (
	"net/http"

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

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