]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+accounts/accounts-routing.module.ts
Fix job progress column
[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'
67264e06
C
3import { AccountVideoChannelsComponent } from './account-video-channels/account-video-channels.component'
4import { AccountVideosComponent } from './account-videos/account-videos.component'
5import { AccountsComponent } from './accounts.component'
0626e7af 6
170726f5 7const accountsRoutes: Routes = [
1a03bea0
C
8 {
9 path: 'peertube',
10 redirectTo: '/videos/local'
11 },
0626e7af
C
12 {
13 path: ':accountId',
170726f5 14 component: AccountsComponent,
0626e7af
C
15 children: [
16 {
17 path: '',
c8487f3f 18 redirectTo: 'video-channels',
0626e7af
C
19 pathMatch: 'full'
20 },
37024082
RK
21 {
22 path: 'video-channels',
23 component: AccountVideoChannelsComponent,
24 data: {
25 meta: {
26 title: $localize`Account video channels`
27 }
28 }
29 },
0626e7af
C
30 {
31 path: 'videos',
32 component: AccountVideosComponent,
33 data: {
34 meta: {
f29f487e 35 title: $localize`Account videos`
489290b8
C
36 },
37 reuse: {
38 enabled: true,
39 key: 'account-videos-list'
0626e7af
C
40 }
41 }
42 },
dd24f1bb
C
43
44 // Old URL redirection
d3e91a5f 45 {
37024082 46 path: 'search',
dd24f1bb 47 redirectTo: 'videos'
0626e7af
C
48 }
49 ]
50 }
51]
52
53@NgModule({
170726f5 54 imports: [ RouterModule.forChild(accountsRoutes) ],
0626e7af
C
55 exports: [ RouterModule ]
56})
170726f5 57export class AccountsRoutingModule {}