aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/my-account/my-account-routing.module.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-23 16:16:05 +0200
committerChocobozzz <me@florianbigard.com>2018-04-23 16:16:05 +0200
commit4bb6886d28cc5333bbe1523674bf5db141af456f (patch)
tree86276bfa11afdd4357ac45df2ead26a41f181069 /client/src/app/my-account/my-account-routing.module.ts
parent3186046d17cc09a3426d5ea67835f4c936cb18a3 (diff)
downloadPeerTube-4bb6886d28cc5333bbe1523674bf5db141af456f.tar.gz
PeerTube-4bb6886d28cc5333bbe1523674bf5db141af456f.tar.zst
PeerTube-4bb6886d28cc5333bbe1523674bf5db141af456f.zip
Rename account module to my-account
Diffstat (limited to 'client/src/app/my-account/my-account-routing.module.ts')
-rw-r--r--client/src/app/my-account/my-account-routing.module.ts41
1 files changed, 41 insertions, 0 deletions
diff --git a/client/src/app/my-account/my-account-routing.module.ts b/client/src/app/my-account/my-account-routing.module.ts
new file mode 100644
index 000000000..5a61db41f
--- /dev/null
+++ b/client/src/app/my-account/my-account-routing.module.ts
@@ -0,0 +1,41 @@
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
3import { MetaGuard } from '@ngx-meta/core'
4import { LoginGuard } from '../core'
5import { MyAccountComponent } from './my-account.component'
6import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component'
7import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component'
8
9const myAccountRoutes: Routes = [
10 {
11 path: 'my-account',
12 component: MyAccountComponent,
13 canActivateChild: [ MetaGuard, LoginGuard ],
14 children: [
15 {
16 path: 'settings',
17 component: MyAccountSettingsComponent,
18 data: {
19 meta: {
20 title: 'Account settings'
21 }
22 }
23 },
24 {
25 path: 'videos',
26 component: MyAccountVideosComponent,
27 data: {
28 meta: {
29 title: 'Account videos'
30 }
31 }
32 }
33 ]
34 }
35]
36
37@NgModule({
38 imports: [ RouterModule.forChild(myAccountRoutes) ],
39 exports: [ RouterModule ]
40})
41export class MyAccountRoutingModule {}