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