diff options
Diffstat (limited to 'client/src/app/+stats/stats-routing.module.ts')
-rw-r--r-- | client/src/app/+stats/stats-routing.module.ts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/client/src/app/+stats/stats-routing.module.ts b/client/src/app/+stats/stats-routing.module.ts new file mode 100644 index 000000000..59519a703 --- /dev/null +++ b/client/src/app/+stats/stats-routing.module.ts | |||
@@ -0,0 +1,25 @@ | |||
1 | import { NgModule } from '@angular/core' | ||
2 | import { RouterModule, Routes } from '@angular/router' | ||
3 | import { VideoResolver } from '@app/shared/shared-main' | ||
4 | import { VideoStatsComponent } from './video' | ||
5 | |||
6 | const statsRoutes: Routes = [ | ||
7 | { | ||
8 | path: 'videos/:videoId', | ||
9 | component: VideoStatsComponent, | ||
10 | data: { | ||
11 | meta: { | ||
12 | title: $localize`Video stats` | ||
13 | } | ||
14 | }, | ||
15 | resolve: { | ||
16 | video: VideoResolver | ||
17 | } | ||
18 | } | ||
19 | ] | ||
20 | |||
21 | @NgModule({ | ||
22 | imports: [ RouterModule.forChild(statsRoutes) ], | ||
23 | exports: [ RouterModule ] | ||
24 | }) | ||
25 | export class StatsRoutingModule {} | ||