package roomrocket

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/room-rocket/config", middleware.RequirePermission("room-rocket:view"), h.GetRoomRocketConfig)
	protected.PUT("/admin/activity/room-rocket/config", middleware.RequirePermission("room-rocket:update"), h.UpdateRoomRocketConfig)
}
