Files
market-backOfficce/src/app/app.routes.ts

35 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-01-19 23:17:07 +04:00
import { Routes } from '@angular/router';
export const routes: Routes = [
{
path: '',
2026-03-01 02:40:42 +04:00
loadComponent: () => import('./pages/projects-dashboard/projects-dashboard.component').then(m => m.ProjectsDashboardComponent)
2026-01-19 23:17:07 +04:00
},
{
path: 'project/:projectId',
2026-03-01 02:40:42 +04:00
loadComponent: () => import('./pages/project-view/project-view.component').then(m => m.ProjectViewComponent),
2026-01-19 23:17:07 +04:00
children: [
{
path: 'category/:categoryId',
2026-03-01 02:40:42 +04:00
loadComponent: () => import('./pages/category-editor/category-editor.component').then(m => m.CategoryEditorComponent)
2026-01-19 23:17:07 +04:00
},
{
path: 'subcategory/:subcategoryId',
2026-03-01 02:40:42 +04:00
loadComponent: () => import('./pages/subcategory-editor/subcategory-editor.component').then(m => m.SubcategoryEditorComponent)
2026-01-19 23:17:07 +04:00
},
{
path: 'items/:subcategoryId',
2026-03-01 02:40:42 +04:00
loadComponent: () => import('./pages/items-list/items-list.component').then(m => m.ItemsListComponent)
2026-01-19 23:17:07 +04:00
},
{
path: 'item/:itemId',
2026-03-01 02:40:42 +04:00
loadComponent: () => import('./pages/item-editor/item-editor.component').then(m => m.ItemEditorComponent)
2026-02-20 01:46:14 +04:00
},
{
path: 'item/:itemId/preview',
2026-03-01 02:40:42 +04:00
loadComponent: () => import('./pages/item-preview/item-preview.component').then(m => m.ItemPreviewComponent)
2026-01-19 23:17:07 +04:00
}
]
}
];