aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-video-channels/my-account-video-channels-routing.module.ts
blob: 94037e18f99ce0c55c6deb02be7336b62c9b9ce9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
import { MyAccountVideoChannelUpdateComponent } from './my-account-video-channel-update.component'
import { MyAccountVideoChannelCreateComponent } from './my-account-video-channel-create.component'
import { MyAccountVideoChannelsComponent } from './my-account-video-channels.component'

const myAccountVideoChannelsRoutes: Routes = [
  {
    path: '',
    component: MyAccountVideoChannelsComponent,
    data: {
      meta: {
        title: 'Account video channels'
      }
    }
  },
  {
    path: 'create',
    component: MyAccountVideoChannelCreateComponent,
    data: {
      meta: {
        title: 'Create new video channel'
      }
    }
  },
  {
    path: 'update/:videoChannelId',
    component: MyAccountVideoChannelUpdateComponent,
    data: {
      meta: {
        title: 'Update video channel'
      }
    }
  }
]

@NgModule({
  imports: [ RouterModule.forChild(myAccountVideoChannelsRoutes) ],
  exports: [ RouterModule ]
})
export class MyAccountVideoChannelsRoutingModule {}