blob: 9d276be7c813833bc39b74575db56c72c536fff8 (
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
|
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
import { LoginGuard } from '@app/core'
import { VideoResolver } from '@app/shared/shared-main'
import { VideoStudioEditComponent } from './edit'
const videoStudioRoutes: Routes = [
{
path: '',
canActivateChild: [ LoginGuard ],
children: [
{
path: 'edit/:videoId',
component: VideoStudioEditComponent,
data: {
meta: {
title: $localize`Studio`
}
},
resolve: {
video: VideoResolver
}
}
]
}
]
@NgModule({
imports: [ RouterModule.forChild(videoStudioRoutes) ],
exports: [ RouterModule ]
})
export class VideoStudioRoutingModule {}
|