package regionblock

import (
	"hyapp-admin-server/internal/middleware"

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

func RegisterRoutes(protected *gin.RouterGroup, h *Handler) {
	if h == nil {
		return
	}

	protected.GET("/admin/users/region-blocks", middleware.RequirePermission("region-block:view"), h.ListRegionBlocks)
	protected.PUT("/admin/users/region-blocks", middleware.RequirePermission("region-block:update"), h.ReplaceRegionBlocks)
}
