Fix images size limit
[oweals/peertube.git] / client / src / app / +my-account / my-account-routing.module.ts
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
12 const myAccountRoutes: Routes = [
13   {
14     path: '',
15     component: MyAccountComponent,
16     canActivateChild: [ MetaGuard, LoginGuard ],
17     children: [
18       {
19         path: '',
20         redirectTo: 'settings',
21         pathMatch: 'full'
22       },
23       {
24         path: 'settings',
25         component: MyAccountSettingsComponent,
26         data: {
27           meta: {
28             title: 'Account settings'
29           }
30         }
31       },
32       {
33         path: 'video-channels',
34         component: MyAccountVideoChannelsComponent,
35         data: {
36           meta: {
37             title: 'Account video channels'
38           }
39         }
40       },
41       {
42         path: 'video-channels/create',
43         component: MyAccountVideoChannelCreateComponent,
44         data: {
45           meta: {
46             title: 'Create new video channel'
47           }
48         }
49       },
50       {
51         path: 'video-channels/update/:videoChannelId',
52         component: MyAccountVideoChannelUpdateComponent,
53         data: {
54           meta: {
55             title: 'Update video channel'
56           }
57         }
58       },
59       {
60         path: 'videos',
61         component: MyAccountVideosComponent,
62         data: {
63           meta: {
64             title: 'Account videos'
65           }
66         }
67       }
68     ]
69   }
70 ]
71
72 @NgModule({
73   imports: [ RouterModule.forChild(myAccountRoutes) ],
74   exports: [ RouterModule ]
75 })
76 export class MyAccountRoutingModule {}