16 lines
295 B
Go
16 lines
295 B
Go
package report
|
|
|
|
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/operations/reports", middleware.RequirePermission("report:view"), h.ListReports)
|
|
}
|