]>
Commit | Line | Data |
---|---|---|
384ba8b7 C |
1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | |
f40712ab | 3 | import { LoginGuard } from '@app/core' |
384ba8b7 C |
4 | import { VideoResolver } from '@app/shared/shared-main' |
5 | import { VideoStatsComponent } from './video' | |
6 | ||
7 | const statsRoutes: Routes = [ | |
8 | { | |
9 | path: 'videos/:videoId', | |
f40712ab | 10 | canActivate: [ LoginGuard ], |
384ba8b7 C |
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 {} |