import { AuthComponent } from '@/modules/auth/pages/auth.component'; import { BANK_ACCOUNTS_ROUTES } from '@/modules/bankAccounts/constants'; import { BANK_BRANCHES_ROUTES } from '@/modules/bankBranches/constants'; import { CARDEX_ROUTES } from '@/modules/cardex/constants'; import { CUSTOMERS_ROUTES } from '@/modules/customers/constants'; import { INVENTORIES_ROUTES } from '@/modules/inventories/constants'; import { POSComponent } from '@/modules/pos/views/pos.component'; import { PRODUCT_BRANDS_ROUTES } from '@/modules/productBrands/constants'; import { PRODUCT_CATEGORIES_ROUTES } from '@/modules/productCategories/constants'; import { PRODUCTS_ROUTES } from '@/modules/products/constants'; import { STORES_ROUTES } from '@/modules/stores/constants'; import { SUPPLIERS_ROUTES } from '@/modules/suppliers/constants'; import { USERS_ROUTES } from '@/modules/users/constants'; import { Routes } from '@angular/router'; import { AppLayout } from './app/layout/component/app.layout.component'; import { Dashboard } from './app/pages/dashboard/dashboard'; import { Documentation } from './app/pages/documentation/documentation'; import { Notfound } from './app/pages/notfound/notfound.component'; export const appRoutes: Routes = [ { path: '', component: AppLayout, children: [ { path: '', component: Dashboard }, ...USERS_ROUTES, ...STORES_ROUTES, ...SUPPLIERS_ROUTES, ...PRODUCT_BRANDS_ROUTES, ...PRODUCT_CATEGORIES_ROUTES, ...CUSTOMERS_ROUTES, ...INVENTORIES_ROUTES, ...PRODUCTS_ROUTES, ...CARDEX_ROUTES, ...BANK_BRANCHES_ROUTES, ...BANK_ACCOUNTS_ROUTES, { path: 'uikit', loadChildren: () => import('./app/pages/uikit/uikit.routes') }, { path: 'documentation', component: Documentation }, { path: 'pages', loadChildren: () => import('./app/pages/pages.routes') }, ], }, { path: 'pos/:posId', component: POSComponent, }, { path: 'auth', component: AuthComponent, }, { path: 'notfound', component: Notfound }, // { path: 'auth', loadChildren: () => import('./app/pages/auth/auth.routes') }, { path: '**', redirectTo: '/notfound' }, ];