feat: add superadmin health center
This commit is contained in:
@@ -34,6 +34,7 @@ type Routes struct {
|
||||
creatorApplications *creatorApplications
|
||||
creators *creators
|
||||
finance *finance
|
||||
healths *healths
|
||||
notifications *notifications
|
||||
orders *orders
|
||||
payoutAccounts *payoutAccounts
|
||||
@@ -243,6 +244,12 @@ func (r *Routes) Register(router fiber.Router) {
|
||||
r.finance.ListLedgers,
|
||||
Query[dto.SuperLedgerListFilter]("filter"),
|
||||
))
|
||||
// Register routes for controller: healths
|
||||
r.log.Debugf("Registering route: Get /super/v1/health/overview -> healths.Overview")
|
||||
router.Get("/super/v1/health/overview"[len(r.Path()):], DataFunc1(
|
||||
r.healths.Overview,
|
||||
Query[dto.SuperHealthOverviewFilter]("filter"),
|
||||
))
|
||||
// Register routes for controller: notifications
|
||||
r.log.Debugf("Registering route: Get /super/v1/notifications -> notifications.List")
|
||||
router.Get("/super/v1/notifications"[len(r.Path()):], DataFunc1(
|
||||
|
||||
Reference in New Issue
Block a user