]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+video-studio/video-studio-routing.module.ts
Merge branch 'release/4.2.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / +video-studio / video-studio-routing.module.ts
CommitLineData
92e66e04
C
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
f40712ab 3import { LoginGuard } from '@app/core'
384ba8b7
C
4import { VideoResolver } from '@app/shared/shared-main'
5import { VideoStudioEditComponent } from './edit'
92e66e04
C
6
7const videoStudioRoutes: Routes = [
8 {
9 path: '',
f40712ab 10 canActivateChild: [ LoginGuard ],
92e66e04
C
11 children: [
12 {
13 path: 'edit/:videoId',
14 component: VideoStudioEditComponent,
15 data: {
16 meta: {
17 title: $localize`Studio`
18 }
19 },
20 resolve: {
384ba8b7 21 video: VideoResolver
92e66e04
C
22 }
23 }
24 ]
25 }
26]
27
28@NgModule({
29 imports: [ RouterModule.forChild(videoStudioRoutes) ],
30 exports: [ RouterModule ]
31})
32export class VideoStudioRoutingModule {}