2026-01-18 18:57:06 +04:00
|
|
|
import { Routes } from '@angular/router';
|
2026-01-23 00:00:08 +04:00
|
|
|
import { brandInfoRoutes, brandLegalRoutes } from './brands/brand-routes';
|
2026-01-18 18:57:06 +04:00
|
|
|
|
2026-01-23 00:00:08 +04:00
|
|
|
// Core routes (same across all brands)
|
|
|
|
|
const coreRoutes: Routes = [
|
2026-01-18 18:57:06 +04:00
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
loadComponent: () => import('./pages/home/home.component').then(m => m.HomeComponent)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'category/:id',
|
|
|
|
|
loadComponent: () => import('./pages/category/subcategories.component').then(m => m.SubcategoriesComponent)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'category/:id/items',
|
|
|
|
|
loadComponent: () => import('./pages/category/category.component').then(m => m.CategoryComponent)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'item/:id',
|
|
|
|
|
loadComponent: () => import('./pages/item-detail/item-detail.component').then(m => m.ItemDetailComponent)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'search',
|
|
|
|
|
loadComponent: () => import('./pages/search/search.component').then(m => m.SearchComponent)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'cart',
|
|
|
|
|
loadComponent: () => import('./pages/cart/cart.component').then(m => m.CartComponent)
|
2026-01-23 00:00:08 +04:00
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
// Combine core routes with brand-specific routes
|
|
|
|
|
export const routes: Routes = [
|
|
|
|
|
...coreRoutes,
|
|
|
|
|
...brandInfoRoutes,
|
|
|
|
|
...brandLegalRoutes,
|
2026-01-18 18:57:06 +04:00
|
|
|
{
|
|
|
|
|
path: '**',
|
2026-01-22 23:31:14 +04:00
|
|
|
redirectTo: ''
|
2026-01-18 18:57:06 +04:00
|
|
|
}
|
2026-01-23 00:00:08 +04:00
|
|
|
];
|