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'
7 const statsRoutes: Routes = [
9 path: 'videos/:videoId',
10 canActivate: [ LoginGuard ],
11 component: VideoStatsComponent,
14 title: $localize`Video stats`
24 imports: [ RouterModule.forChild(statsRoutes) ],
25 exports: [ RouterModule ]
27 export class StatsRoutingModule {}