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