1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3 import { MetaGuard } from '@ngx-meta/core'
4 import { AccountsComponent } from './accounts.component'
5 import { AccountVideosComponent } from './account-videos/account-videos.component'
6 import { AccountAboutComponent } from './account-about/account-about.component'
7 import { AccountVideoChannelsComponent } from './account-video-channels/account-video-channels.component'
8 import { AccountSearchComponent } from './account-search/account-search.component'
10 const accountsRoutes: Routes = [
13 redirectTo: '/videos/local'
17 component: AccountsComponent,
18 canActivateChild: [ MetaGuard ],
22 redirectTo: 'video-channels',
26 path: 'video-channels',
27 component: AccountVideoChannelsComponent,
30 title: $localize`Account video channels`
36 component: AccountAboutComponent,
39 title: $localize`About account`
45 component: AccountVideosComponent,
48 title: $localize`Account videos`
52 key: 'account-videos-list'
58 component: AccountSearchComponent,
61 title: $localize`Search videos within account`
70 imports: [ RouterModule.forChild(accountsRoutes) ],
71 exports: [ RouterModule ]
73 export class AccountsRoutingModule {}