]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+accounts/accounts-routing.module.ts
Add debug component to help admins to fix IP issues
[github/Chocobozzz/PeerTube.git] / client / src / app / +accounts / accounts-routing.module.ts
CommitLineData
0626e7af
C
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
3import { MetaGuard } from '@ngx-meta/core'
170726f5 4import { AccountsComponent } from './accounts.component'
0626e7af 5import { AccountVideosComponent } from './account-videos/account-videos.component'
d3e91a5f
C
6import { AccountAboutComponent } from './account-about/account-about.component'
7import { AccountVideoChannelsComponent } from './account-video-channels/account-video-channels.component'
0626e7af 8
170726f5 9const accountsRoutes: Routes = [
0626e7af
C
10 {
11 path: ':accountId',
170726f5 12 component: AccountsComponent,
0626e7af
C
13 canActivateChild: [ MetaGuard ],
14 children: [
15 {
16 path: '',
17 redirectTo: 'videos',
18 pathMatch: 'full'
19 },
20 {
21 path: 'videos',
22 component: AccountVideosComponent,
23 data: {
24 meta: {
25 title: 'Account videos'
489290b8
C
26 },
27 reuse: {
28 enabled: true,
29 key: 'account-videos-list'
0626e7af
C
30 }
31 }
32 },
d3e91a5f
C
33 {
34 path: 'video-channels',
35 component: AccountVideoChannelsComponent,
36 data: {
37 meta: {
38 title: 'Account video channels'
39 }
40 }
41 },
0626e7af
C
42 {
43 path: 'about',
44 component: AccountAboutComponent,
45 data: {
46 meta: {
47 title: 'About account'
48 }
49 }
50 }
51 ]
52 }
53]
54
55@NgModule({
170726f5 56 imports: [ RouterModule.forChild(accountsRoutes) ],
0626e7af
C
57 exports: [ RouterModule ]
58})
170726f5 59export class AccountsRoutingModule {}