Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const routes: Routes = [
- {
- path: '',
- pathMatch: 'full',
- redirectTo: '/projects'
- },
- {
- path: '',
- canActivate: [LocaleGuard],
- children: [
- {
- path: '',
- children: [
- {
- path: 'email/confirmation',
- component: AppEmailConfirmationComponent
- },
- {
- path: 'email/resend_confirmation',
- component: AppLayout,
- children: [
- {
- path: '',
- component: AppEmailResendComponent
- }
- ]
- },
- {
- path: 'profile',
- loadChildren: '../join/join.module#JoinModule'
- },
- {
- path: '',
- canActivate: [GuestGuard],
- loadChildren: '../login/login.module#AppLoginModule'
- }
- ]
- },
- //protected routes
- {
- path: '',
- component: AppLayout,
- canActivate: [AuthGuard],
- children: [
- {
- path: 'expert',
- loadChildren: '../expert/expert.module#ExpertModule'
- },
- {
- path: 'join_order',
- loadChildren: '../joinOrder/joinOrder.module#JoinOrderModule'
- },
- {
- path: 'projects',
- loadChildren: '../index/index.module#IndexModule'
- },
- {
- path: 'invoices',
- loadChildren: '../invoices/invoices.module#InvoicesModule'
- },
- {
- path: 'notifications',
- loadChildren: '../notifications/notifications.module#NotificationsModule'
- },
- {
- path: 'profiles',
- loadChildren: '../profiles/profiles.module#ProfilesModule'
- },
- {
- path: 'project',
- loadChildren: '../project/project.module#ProjectModule'
- },
- {
- path: 'project/edit',
- loadChildren: '../projectEditor/projectEditor.module#ProjectEditorModule'
- },
- {
- path: 'settings',
- loadChildren: '../settings/settings.module#SettingsModule'
- },
- {
- path: 'settings/profiles',
- loadChildren: '../settingsProfile/profile.module#ProfileModule'
- },
- {
- path: '**',
- component: AppNotFoundComponent,
- }
- ]
- },
- {
- path: '',
- component: AppLayout,
- children: [
- {
- path: '404',
- component: AppNotFoundComponent,
- },
- {
- path: '**',
- component: AppNotFoundComponent,
- }
- ]
- }
- ]
- },
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement