package registrationreward

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/activity/registration-reward/config", middleware.RequirePermission("registration-reward:view"), h.GetRegistrationRewardConfig)
	protected.PUT("/admin/activity/registration-reward/config", middleware.RequirePermission("registration-reward:update"), h.UpdateRegistrationRewardConfig)
	protected.GET("/admin/activity/registration-reward/claims", middleware.RequirePermission("registration-reward:view"), h.ListRegistrationRewardClaims)
}
