aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+video-editor/video-editor-routing.module.ts
blob: 9f37a0dae37c05ea66ac82b06d6dadbd76dff272 (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
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
import { VideoEditorEditResolver } from './edit'
import { VideoEditorEditComponent } from './edit/video-editor-edit.component'

const videoEditorRoutes: Routes = [
  {
    path: '',
    children: [
      {
        path: 'edit/:videoId',
        component: VideoEditorEditComponent,
        data: {
          meta: {
            title: $localize`Edit video`
          }
        },
        resolve: {
          video: VideoEditorEditResolver
        }
      }
    ]
  }
]

@NgModule({
  imports: [ RouterModule.forChild(videoEditorRoutes) ],
  exports: [ RouterModule ]
})
export class VideoEditorRoutingModule {}