1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3 import { AccountVideoChannelsComponent } from './account-video-channels/account-video-channels.component'
4 import { AccountVideosComponent } from './account-videos/account-videos.component'
5 import { AccountsComponent } from './accounts.component'
7 const accountsRoutes: Routes = [
10 redirectTo: '/videos/local'
14 component: AccountsComponent,
18 redirectTo: 'video-channels',
22 path: 'video-channels',
23 component: AccountVideoChannelsComponent,
26 title: $localize`Account video channels`
32 component: AccountVideosComponent,
35 title: $localize`Account videos`
39 key: 'account-videos-list'
44 // Old URL redirection
54 imports: [ RouterModule.forChild(accountsRoutes) ],
55 exports: [ RouterModule ]
57 export class AccountsRoutingModule {}