2025-12-04 23:34:00 +03:30
|
|
|
import { CUSTOMERS_ROUTES } from '@/modules/customers/constants';
|
|
|
|
|
import { INVENTORIES_ROUTES } from '@/modules/inventories/constants';
|
|
|
|
|
import { PRODUCT_BRANDS_ROUTES } from '@/modules/productBrands/constants';
|
|
|
|
|
import { PRODUCT_CATEGORIES_ROUTES } from '@/modules/productCategories/constants';
|
2025-12-06 11:09:06 +03:30
|
|
|
import { PRODUCTS_ROUTES } from '@/modules/products/constants';
|
2025-12-04 23:34:00 +03:30
|
|
|
import { STORES_ROUTES } from '@/modules/stores/constants';
|
|
|
|
|
import { SUPPLIERS_ROUTES } from '@/modules/suppliers/constants';
|
|
|
|
|
import { USERS_ROUTES } from '@/modules/users/constants';
|
2025-01-03 12:53:05 +03:00
|
|
|
import { Routes } from '@angular/router';
|
2025-12-04 23:34:00 +03:30
|
|
|
import { AppLayout } from './app/layout/component/app.layout.component';
|
2025-01-07 13:04:10 +03:00
|
|
|
import { Dashboard } from './app/pages/dashboard/dashboard';
|
|
|
|
|
import { Documentation } from './app/pages/documentation/documentation';
|
2025-12-04 23:34:00 +03:30
|
|
|
import { Notfound } from './app/pages/notfound/notfound.component';
|
2025-01-03 12:53:05 +03:00
|
|
|
|
2025-01-07 12:16:16 +03:00
|
|
|
export const appRoutes: Routes = [
|
2025-12-04 23:34:00 +03:30
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
component: AppLayout,
|
|
|
|
|
children: [
|
|
|
|
|
{ path: '', component: Dashboard },
|
|
|
|
|
...USERS_ROUTES,
|
|
|
|
|
...STORES_ROUTES,
|
|
|
|
|
...SUPPLIERS_ROUTES,
|
|
|
|
|
...PRODUCT_BRANDS_ROUTES,
|
|
|
|
|
...PRODUCT_CATEGORIES_ROUTES,
|
|
|
|
|
...CUSTOMERS_ROUTES,
|
|
|
|
|
...INVENTORIES_ROUTES,
|
2025-12-06 11:09:06 +03:30
|
|
|
...PRODUCTS_ROUTES,
|
2025-12-04 23:34:00 +03:30
|
|
|
{ path: 'uikit', loadChildren: () => import('./app/pages/uikit/uikit.routes') },
|
|
|
|
|
{ path: 'documentation', component: Documentation },
|
|
|
|
|
{ path: 'pages', loadChildren: () => import('./app/pages/pages.routes') },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{ path: 'notfound', component: Notfound },
|
|
|
|
|
{ path: 'auth', loadChildren: () => import('./app/pages/auth/auth.routes') },
|
|
|
|
|
{ path: '**', redirectTo: '/notfound' },
|
2025-01-03 12:53:05 +03:00
|
|
|
];
|