]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/account/account-routing.module.ts
2e9de1cfb19dacd7c5c57c9782749e73a929f0a8
[github/Chocobozzz/PeerTube.git] / client / src / app / account / account-routing.module.ts
1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3
4 import { MetaGuard } from '@ngx-meta/core'
5
6 import { LoginGuard } from '../core'
7 import { AccountComponent } from './account.component'
8 import { AccountSettingsComponent } from './account-settings/account-settings.component'
9
10 const accountRoutes: Routes = [
11 {
12 path: 'account',
13 component: AccountComponent,
14 canActivateChild: [ MetaGuard, LoginGuard ],
15 children: [
16 {
17 path: 'settings',
18 component: AccountSettingsComponent,
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 ]
35 }
36 ]
37
38 @NgModule({
39 imports: [ RouterModule.forChild(accountRoutes) ],
40 exports: [ RouterModule ]
41 })
42 export class AccountRoutingModule {}