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'
8 const accountsRoutes: Routes = [
11 redirectTo: '/videos/local'
15 component: AccountsComponent,
19 redirectTo: 'video-channels',
23 path: 'video-channels',
24 component: AccountVideoChannelsComponent,
27 title: $localize`Account video channels`
33 component: AccountVideosComponent,
36 title: $localize`Account videos`
40 key: 'account-videos-list'
46 component: AccountSearchComponent,
49 title: $localize`Search videos within account`
58 imports: [ RouterModule.forChild(accountsRoutes) ],
59 exports: [ RouterModule ]
61 export class AccountsRoutingModule {}