Skip to main content

Routes & Pages

Defined in src/App.tsx. Route / redirects → /dashboard.


Public routes

RouteComponentPurpose
/loginLoginPageLogin + 2FA OTP + Turnstile
/forgot-passwordForgotPasswordContactPageStep 1
/forgot-password/otpForgotPasswordOtpPageStep 2
/forgot-password/resetForgotPasswordResetPageStep 3

Protected routes

RouteComponentPurpose
/dashboardDashboardPageOverview, hierarchy tree, buy/distribute credits
/agentsSuperAgentManagementPage (section=agents)Managed agent list
/agents/newCreateManagedAgentPageCreate new agent
/agents/:agentIdManagedAgentDetailPageAgent detail
/shopsSuperAgentManagementPage (section=shops)Shop list
/shops/:shopIdShopDetailPageShop detail
/playersSuperAgentManagementPage (section=players)Player list
/transactionsAgentTransactionsPageCredits ledger, CSV export
/online-transactionsOnlineBalanceTransactionsPageUSD ledger, crypto withdrawal
/provider-feesProviderFeesPageProvider fees (read-only)
/fraud-indicatorsFraudIndicatorsPagePlayer fraud
/popups/sendSendShopPopupPageSend popup
/broadcasts/sendSendBroadcastPageSend broadcast
/payment/returnAgentPaymentReturnPagePayment callback
/settingsSettingsPageCost rate, 2FA, low balance

Catch-all */dashboard.


Managed Agent detail (/agents/:agentId)

Tab / SectionContent
OverviewAgent info, wallets
SecurityName, password, cost rate, popup permissions
CreditDistribute/withdraw credits, ledger
GamesGame mappings (GET/PUT .../game-mappings)

Shop detail (/shops/:shopId)

TabContent
OverviewInfo, wallets
SecurityCost rate, password, popup permission
CDN walletCredit transactions
USD walletOnline balance ledger

Key components

ComponentRole
AppLayoutSidebar, mobile nav, balance cards, breadcrumb
HierarchyMiniTreeHierarchy tree on dashboard
CreditPurchaseTrigger/ModalBuy credits
DistributeCreditsTriggerDistribute credits to agent/shop
WithdrawCreditsFromAgentTriggerWithdraw credits from agent
SuperAgentAgentCreditTriggerCredit actions on agent
ManagedShopWalletHistoryPanelShop wallet history
AgentNotificationBellBroadcast notifications
AgentInAppPopupGateIn-app popup gate
VerifyNowTriggerEmail/phone verification
PortalWithdrawalLimitsPanelUSD withdrawal limits