package databi

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

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

func RegisterRoutes(protected *gin.RouterGroup, h *Handler) {
	protected.GET("/admin/databi/social/master", middleware.RequirePermission("overview:view"), h.Master)
	protected.GET("/admin/databi/social/overview", middleware.RequirePermission("overview:view"), h.Overview)
	protected.GET("/admin/databi/social/funnel", middleware.RequirePermission("overview:view"), h.Funnel)
	protected.GET("/admin/databi/social/requirements", middleware.RequirePermission("overview:view"), h.Requirements)
	protected.GET("/admin/databi/social/kpi", middleware.RequirePermission("overview:view"), h.Kpi)
}
