package audit

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

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

func RegisterRoutes(protected *gin.RouterGroup, h *Handler) {
	protected.GET("/logs/login", middleware.RequirePermission("log:view"), h.ListLoginLogs)
	protected.GET("/logs/operations", middleware.RequirePermission("log:view"), h.ListOperationLogs)
	protected.GET("/logs/login/export", middleware.RequirePermission("log:export"), h.ExportLoginLogs)
	protected.GET("/logs/operations/export", middleware.RequirePermission("log:export"), h.ExportOperationLogs)
}
