package sevendaycheckin

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/seven-day-checkin/config", middleware.RequirePermission("seven-day-checkin:view"), h.GetSevenDayCheckInConfig)
	protected.PUT("/admin/activity/seven-day-checkin/config", middleware.RequirePermission("seven-day-checkin:update"), h.UpdateSevenDayCheckInConfig)
	protected.GET("/admin/activity/seven-day-checkin/claims", middleware.RequirePermission("seven-day-checkin:view"), h.ListSevenDayCheckInClaims)
}
