]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/my-account/my-account-routing.module.ts
Fix changelog bullet points
[github/Chocobozzz/PeerTube.git] / client / src / app / my-account / my-account-routing.module.ts
1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3 import { MetaGuard } from '@ngx-meta/core'
4 import { LoginGuard } from '../core'
5 import { MyAccountComponent } from './my-account.component'
6 import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component'
7 import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component'
8
9 const 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 })
41 export class MyAccountRoutingModule {}