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'
13 import { MyAccountOwnershipComponent } from '@app/+my-account/my-account-ownership/my-account-ownership.component'
15 const myAccountRoutes: Routes = [
18 component: MyAccountComponent,
19 canActivateChild: [ MetaGuard, LoginGuard ],
23 redirectTo: 'settings',
28 component: MyAccountSettingsComponent,
31 title: 'Account settings'
36 path: 'video-channels',
37 component: MyAccountVideoChannelsComponent,
40 title: 'Account video channels'
45 path: 'video-channels/create',
46 component: MyAccountVideoChannelCreateComponent,
49 title: 'Create new video channel'
54 path: 'video-channels/update/:videoChannelId',
55 component: MyAccountVideoChannelUpdateComponent,
58 title: 'Update video channel'
64 component: MyAccountVideosComponent,
67 title: 'Account videos'
72 path: 'video-imports',
73 component: MyAccountVideoImportsComponent,
76 title: 'Account video imports'
81 path: 'subscriptions',
82 component: MyAccountSubscriptionsComponent,
85 title: 'Account subscriptions'
91 component: MyAccountOwnershipComponent,
94 title: 'Ownership changes'
103 imports: [ RouterModule.forChild(myAccountRoutes) ],
104 exports: [ RouterModule ]
106 export class MyAccountRoutingModule {}