1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3 import { MetaGuard } from '@ngx-meta/core'
4 import { AccountSearchComponent } from './account-search/account-search.component'
5 import { AccountVideoChannelsComponent } from './account-video-channels/account-video-channels.component'
6 import { AccountVideosComponent } from './account-videos/account-videos.component'
7 import { AccountsComponent } from './accounts.component'
9 const accountsRoutes: Routes = [
12 redirectTo: '/videos/local'
16 component: AccountsComponent,
17 canActivateChild: [ MetaGuard ],
21 redirectTo: 'video-channels',
25 path: 'video-channels',
26 component: AccountVideoChannelsComponent,
29 title: $localize`Account video channels`
35 component: AccountVideosComponent,
38 title: $localize`Account videos`
42 key: 'account-videos-list'
48 component: AccountSearchComponent,
51 title: $localize`Search videos within account`
60 imports: [ RouterModule.forChild(accountsRoutes) ],
61 exports: [ RouterModule ]
63 export class AccountsRoutingModule {}