]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+stats/stats-routing.module.ts
Fix confirm modal containing 2 inputs
[github/Chocobozzz/PeerTube.git] / client / src / app / +stats / stats-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 { VideoStatsComponent } from './video'
6
7 const statsRoutes: Routes = [
8 {
9 path: 'videos/:videoId',
10 canActivate: [ LoginGuard ],
11 component: VideoStatsComponent,
12 data: {
13 meta: {
14 title: $localize`Video stats`
15 }
16 },
17 resolve: {
18 video: VideoResolver
19 }
20 }
21 ]
22
23 @NgModule({
24 imports: [ RouterModule.forChild(statsRoutes) ],
25 exports: [ RouterModule ]
26 })
27 export class StatsRoutingModule {}