aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/account/account-routing.module.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/account/account-routing.module.ts')
-rw-r--r--client/src/app/account/account-routing.module.ts28
1 files changed, 22 insertions, 6 deletions
diff --git a/client/src/app/account/account-routing.module.ts b/client/src/app/account/account-routing.module.ts
index 74d9aa03e..2e9de1cfb 100644
--- a/client/src/app/account/account-routing.module.ts
+++ b/client/src/app/account/account-routing.module.ts
@@ -5,17 +5,33 @@ import { MetaGuard } from '@ngx-meta/core'
5 5
6import { LoginGuard } from '../core' 6import { LoginGuard } from '../core'
7import { AccountComponent } from './account.component' 7import { AccountComponent } from './account.component'
8import { AccountSettingsComponent } from './account-settings/account-settings.component'
8 9
9const accountRoutes: Routes = [ 10const accountRoutes: Routes = [
10 { 11 {
11 path: 'account', 12 path: 'account',
12 component: AccountComponent, 13 component: AccountComponent,
13 canActivate: [ MetaGuard, LoginGuard ], 14 canActivateChild: [ MetaGuard, LoginGuard ],
14 data: { 15 children: [
15 meta: { 16 {
16 title: 'My account' 17 path: 'settings',
17 } 18 component: AccountSettingsComponent,
18 } 19 data: {
20 meta: {
21 title: 'Account settings'
22 }
23 }
24 },
25 // {
26 // path: 'videos',
27 // component: AccountVideosComponent,
28 // data: {
29 // meta: {
30 // title: 'Account videos'
31 // }
32 // }
33 // }
34 ]
19 } 35 }
20] 36]
21 37