package handlers

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

// GetPublicRegistrationPolicy 公开：是否必须邀请码（不含具体邀请码）。
func (h *Handler) GetPublicRegistrationPolicy(c *gin.Context) {
	c.JSON(http.StatusOK, gin.H{
		"requireInviteCode": h.store.RegistrationRequireInvite(),
	})
}
