aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+stats/stats-routing.module.ts
blob: 59519a703816b3bbc4e8b1965bd9318a10912e33 (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
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
import { VideoResolver } from '@app/shared/shared-main'
import { VideoStatsComponent } from './video'

const statsRoutes: Routes = [
  {
    path: 'videos/:videoId',
    component: VideoStatsComponent,
    data: {
      meta: {
        title: $localize`Video stats`
      }
    },
    resolve: {
      video: VideoResolver
    }
  }
]

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