Files
syscom-master-admin-ui/src/app/features/global-masters/global-masters.routes.ts
T
2026-08-08 15:58:59 +05:30

60 lines
2.7 KiB
TypeScript

import { Routes } from '@angular/router';
import { superAdminGuard } from '../../core/guards/auth/super-admin.guard';
export const globalMastersRoutes: Routes = [
{
path: 'countries',
canActivate: [superAdminGuard],
loadComponent: () => import('./countries/pages/country-list/country-list').then((m) => m.CountryList),
data: { childTitle: 'Country Management', parentTitle: 'Global Master', subParentTitle: 'Configuration' },
},
{
path: 'states',
canActivate: [superAdminGuard],
loadComponent: () => import('./states/pages/state-list/state-list').then((m) => m.StateList),
data: { childTitle: 'State Management', parentTitle: 'Global Master', subParentTitle: 'Configuration' },
},
{
path: 'cities',
canActivate: [superAdminGuard],
loadComponent: () => import('./cities/pages/city-list/city-list').then((m) => m.CityList),
data: { childTitle: 'City Management', parentTitle: 'Global Master', subParentTitle: 'Configuration' },
},
{
path: 'currencies',
canActivate: [superAdminGuard],
loadComponent: () => import('./currencies/pages/currency-list/currency-list').then((m) => m.CurrencyList),
data: { childTitle: 'Currency Management', parentTitle: 'Global Master', subParentTitle: 'Configuration' },
},
{
path: 'exchange-rates',
canActivate: [superAdminGuard],
loadComponent: () => import('./exchange-rates/pages/exchange-rate-list/exchange-rate-list').then((m) => m.ExchangeRateList),
data: { childTitle: 'Exchange Rates (ROE)', parentTitle: 'Global Master', subParentTitle: 'Configuration' },
},
{
path: 'languages',
canActivate: [superAdminGuard],
loadComponent: () => import('./languages/pages/language-list/language-list').then((m) => m.LanguageList),
data: { childTitle: 'Language Management', parentTitle: 'Global Master', subParentTitle: 'Configuration' },
},
{
path: 'timezones',
canActivate: [superAdminGuard],
loadComponent: () => import('./timezones/pages/timezone-list/timezone-list').then((m) => m.TimezoneList),
data: { childTitle: 'Timezone Management', parentTitle: 'Global Master', subParentTitle: 'Configuration' },
},
{
path: 'plans',
canActivate: [superAdminGuard],
loadComponent: () => import('./plans/pages/plan-list/plan-list').then((m) => m.PlanList),
data: { childTitle: 'Plan Management', parentTitle: 'Global Master', subParentTitle: 'Configuration' },
},
{
path: 'regions',
canActivate: [superAdminGuard],
loadComponent: () => import('./regions/pages/region-list/region-list').then((m) => m.RegionList),
data: { childTitle: 'Region Management', parentTitle: 'Global Master', subParentTitle: 'Configuration' },
}
];