]>
Commit | Line | Data |
---|---|---|
92e66e04 C |
1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | |
f40712ab | 3 | import { LoginGuard } from '@app/core' |
384ba8b7 C |
4 | import { VideoResolver } from '@app/shared/shared-main' |
5 | import { VideoStudioEditComponent } from './edit' | |
92e66e04 C |
6 | |
7 | const 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 | }) | |
32 | export class VideoStudioRoutingModule {} |