clean up
This commit is contained in:
@@ -26,66 +26,13 @@ const coreRoutes: Routes = [
|
||||
{
|
||||
path: 'cart',
|
||||
loadComponent: () => import('./pages/cart/cart.component').then(m => m.CartComponent)
|
||||
},
|
||||
{
|
||||
path: 'platform',
|
||||
loadComponent: () => import('./pages/public/platform-home.component').then(m => m.PlatformHomeComponent)
|
||||
},
|
||||
{
|
||||
path: 'builder-sandbox',
|
||||
loadComponent: () => import('./pages/builder/builder-sandbox.component').then(m => m.BuilderSandboxComponent)
|
||||
},
|
||||
{
|
||||
path: 'backoffice-sandbox',
|
||||
loadComponent: () => import('./pages/backoffice/backoffice-dashboard.component').then(m => m.BackofficeDashboardComponent)
|
||||
}
|
||||
];
|
||||
|
||||
const infoRoutes: Routes = [
|
||||
{
|
||||
path: 'about',
|
||||
loadComponent: () => import('./pages/info/about/about.component').then(m => m.AboutComponent)
|
||||
},
|
||||
{
|
||||
path: 'contacts',
|
||||
loadComponent: () => import('./pages/info/contacts/contacts.component').then(m => m.ContactsComponent)
|
||||
},
|
||||
{
|
||||
path: 'faq',
|
||||
loadComponent: () => import('./pages/info/faq/faq.component').then(m => m.FaqComponent)
|
||||
},
|
||||
{
|
||||
path: 'delivery',
|
||||
loadComponent: () => import('./pages/info/delivery/delivery.component').then(m => m.DeliveryComponent)
|
||||
},
|
||||
{
|
||||
path: 'guarantee',
|
||||
loadComponent: () => import('./pages/info/guarantee/guarantee.component').then(m => m.GuaranteeComponent)
|
||||
}
|
||||
];
|
||||
|
||||
const legalRoutes: Routes = [
|
||||
{
|
||||
path: 'company-details',
|
||||
loadComponent: () => import('./pages/legal/company-details/company-details.component').then(m => m.CompanyDetailsComponent)
|
||||
},
|
||||
{
|
||||
path: 'payment-terms',
|
||||
loadComponent: () => import('./pages/legal/payment-terms/payment-terms.component').then(m => m.PaymentTermsComponent)
|
||||
},
|
||||
{
|
||||
path: 'return-policy',
|
||||
loadComponent: () => import('./pages/legal/return-policy/return-policy.component').then(m => m.ReturnPolicyComponent)
|
||||
},
|
||||
{
|
||||
path: 'public-offer',
|
||||
loadComponent: () => import('./pages/legal/public-offer/public-offer.component').then(m => m.PublicOfferComponent)
|
||||
},
|
||||
{
|
||||
path: 'privacy-policy',
|
||||
loadComponent: () => import('./pages/legal/privacy-policy/privacy-policy.component').then(m => m.PrivacyPolicyComponent)
|
||||
}
|
||||
];
|
||||
// TODO(CMS): Resolve informational/legal pages from backend content configuration here.
|
||||
// Disabled hardcoded pages: about, contacts, faq, delivery, guarantee,
|
||||
// company-details, payment-terms, return-policy, public-offer, privacy-policy.
|
||||
const cmsContentRoutes: Routes = [];
|
||||
|
||||
// All routes sit under a :lang prefix (e.g. /ru/cart, /en/item/5)
|
||||
export const routes: Routes = [
|
||||
@@ -94,8 +41,7 @@ export const routes: Routes = [
|
||||
canActivate: [languageGuard],
|
||||
children: [
|
||||
...coreRoutes,
|
||||
...infoRoutes,
|
||||
...legalRoutes,
|
||||
...cmsContentRoutes,
|
||||
{ path: '**', redirectTo: '' }
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user