]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+video-studio/video-studio-routing.module.ts
Add ability to filter overall video stats by date
[github/Chocobozzz/PeerTube.git] / client / src / app / +video-studio / video-studio-routing.module.ts
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 {}