1
0
Fork 0
peertube/client/src/app/+my-library/+my-video-channels/my-video-channels-routing.module.ts
Chocobozzz 17119e4a54 Reorganize left menu and account menu
Add my-settings and my-library in left menu
Move administration below my-library
Split account menu: my-setting and my library
2020-11-13 12:02:21 +01:00

41 lines
1,023 B
TypeScript

import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
import { MyVideoChannelUpdateComponent } from './my-video-channel-update.component'
import { MyVideoChannelCreateComponent } from './my-video-channel-create.component'
import { MyVideoChannelsComponent } from './my-video-channels.component'
const myVideoChannelsRoutes: Routes = [
{
path: '',
component: MyVideoChannelsComponent,
data: {
meta: {
title: $localize`My video channels`
}
}
},
{
path: 'create',
component: MyVideoChannelCreateComponent,
data: {
meta: {
title: $localize`Create a new video channel`
}
}
},
{
path: 'update/:videoChannelId',
component: MyVideoChannelUpdateComponent,
data: {
meta: {
title: $localize`Update video channel`
}
}
}
]
@NgModule({
imports: [ RouterModule.forChild(myVideoChannelsRoutes) ],
exports: [ RouterModule ]
})
export class MyVideoChannelsRoutingModule {}