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