Files
psp_panel/src/app/domains/consumer/routes.ts
T

26 lines
1.0 KiB
TypeScript

import { Route } from '@angular/router';
import { CONSUMER_ACCOUNTS_ROUTES } from './modules/accounts/constants';
import { CONSUMER_BUSINESS_ACTIVITIES_ROUTES } from './modules/businessActivities/constants';
import { CONSUMER_CUSTOMERS_ROUTES } from './modules/customers/constants';
import { CONSUMER_POSES_ROUTES } from './modules/poses/constants';
import { CONSUMER_PROFILE_ROUTES } from './modules/profile/constants';
import { CONSUMER_SALE_INVOICES_ROUTES } from './modules/saleInvoices/constants';
export const CONSUMER_ROUTES = {
path: 'consumer',
loadComponent: () => import('./layouts/layout.component').then((m) => m.LayoutComponent),
children: [
{
path: '',
loadComponent: () =>
import('./modules/dashboard/views/index.component').then((m) => m.DashboardComponent),
},
...CONSUMER_ACCOUNTS_ROUTES,
...CONSUMER_BUSINESS_ACTIVITIES_ROUTES,
...CONSUMER_CUSTOMERS_ROUTES,
...CONSUMER_SALE_INVOICES_ROUTES,
...CONSUMER_POSES_ROUTES,
...CONSUMER_PROFILE_ROUTES,
],
} as Route;