51 lines
1.0 KiB
TypeScript
51 lines
1.0 KiB
TypeScript
import Dashboard from '@/pages/Dashboard';
|
|
import Tenants from '@/pages/Tenants';
|
|
import CreateTenantWizard from '@/pages/CreateTenantWizard';
|
|
import TenantDetails from '@/pages/TenantDetails';
|
|
import Users from '@/pages/Users';
|
|
import Roles from '@/pages/Roles';
|
|
import Modules from '@/pages/Modules';
|
|
import AuditLogs from '@/pages/AuditLogs';
|
|
import type { ReactElement } from 'react';
|
|
|
|
export interface RouteConfig {
|
|
path: string;
|
|
element: ReactElement;
|
|
}
|
|
|
|
// Super Admin routes (requires super_admin role)
|
|
export const superAdminRoutes: RouteConfig[] = [
|
|
{
|
|
path: '/dashboard',
|
|
element: <Dashboard />,
|
|
},
|
|
{
|
|
path: '/tenants',
|
|
element: <Tenants />,
|
|
},
|
|
{
|
|
path: '/tenants/create-wizard',
|
|
element: <CreateTenantWizard />,
|
|
},
|
|
{
|
|
path: '/tenants/:id',
|
|
element: <TenantDetails />,
|
|
},
|
|
{
|
|
path: '/users',
|
|
element: <Users />,
|
|
},
|
|
{
|
|
path: '/roles',
|
|
element: <Roles />,
|
|
},
|
|
{
|
|
path: '/modules',
|
|
element: <Modules />,
|
|
},
|
|
{
|
|
path: '/audit-logs',
|
|
element: <AuditLogs />,
|
|
},
|
|
];
|