1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3 import { MetaGuard } from '@ngx-meta/core'
4 import { LoginGuard } from '../core'
5 import { MyAccountComponent } from './my-account.component'
6 import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component'
7 import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component'
8 import { MyAccountVideoChannelsComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channels.component'
9 import { MyAccountVideoChannelCreateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-create.component'
10 import { MyAccountVideoChannelUpdateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-update.component'
11 import { MyAccountVideoImportsComponent } from '@app/+my-account/my-account-video-imports/my-account-video-imports.component'
12 import { MyAccountSubscriptionsComponent } from '@app/+my-account/my-account-subscriptions/my-account-subscriptions.component'
14 const myAccountRoutes: Routes = [
17 component: MyAccountComponent,
18 canActivateChild: [ MetaGuard, LoginGuard ],
22 redirectTo: 'settings',
27 component: MyAccountSettingsComponent,
30 title: 'Account settings'
35 path: 'video-channels',
36 component: MyAccountVideoChannelsComponent,
39 title: 'Account video channels'
44 path: 'video-channels/create',
45 component: MyAccountVideoChannelCreateComponent,
48 title: 'Create new video channel'
53 path: 'video-channels/update/:videoChannelId',
54 component: MyAccountVideoChannelUpdateComponent,
57 title: 'Update video channel'
63 component: MyAccountVideosComponent,
66 title: 'Account videos'
71 path: 'video-imports',
72 component: MyAccountVideoImportsComponent,
75 title: 'Account video imports'
80 path: 'subscriptions',
81 component: MyAccountSubscriptionsComponent,
84 title: 'Account subscriptions'
93 imports: [ RouterModule.forChild(myAccountRoutes) ],
94 exports: [ RouterModule ]
96 export class MyAccountRoutingModule {}