]>
Commit | Line | Data |
---|---|---|
1 | import { NgModule } from '@angular/core' | |
2 | import { RouterModule, Routes } from '@angular/router' | |
3 | import { LoginGuard } from '@app/core' | |
4 | import { VideoResolver } from '@app/shared/shared-main' | |
5 | import { VideoStudioEditComponent } from './edit' | |
6 | ||
7 | const videoStudioRoutes: Routes = [ | |
8 | { | |
9 | path: '', | |
10 | canActivateChild: [ LoginGuard ], | |
11 | children: [ | |
12 | { | |
13 | path: 'edit/:videoId', | |
14 | component: VideoStudioEditComponent, | |
15 | data: { | |
16 | meta: { | |
17 | title: $localize`Studio` | |
18 | } | |
19 | }, | |
20 | resolve: { | |
21 | video: VideoResolver | |
22 | } | |
23 | } | |
24 | ] | |
25 | } | |
26 | ] | |
27 | ||
28 | @NgModule({ | |
29 | imports: [ RouterModule.forChild(videoStudioRoutes) ], | |
30 | exports: [ RouterModule ] | |
31 | }) | |
32 | export class VideoStudioRoutingModule {} |