aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+stats/stats-routing.module.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-04-05 14:03:52 +0200
committerChocobozzz <chocobozzz@cpy.re>2022-04-15 09:49:35 +0200
commit384ba8b77a8e4805c099f5ea12b41c2ca5776e26 (patch)
tree6b517033d9265d283677b85e0f57486e0e7fd8cf /client/src/app/+stats/stats-routing.module.ts
parentb211106695bb82f6c32e53306081b5262c3d109d (diff)
downloadPeerTube-384ba8b77a8e4805c099f5ea12b41c2ca5776e26.tar.gz
PeerTube-384ba8b77a8e4805c099f5ea12b41c2ca5776e26.tar.zst
PeerTube-384ba8b77a8e4805c099f5ea12b41c2ca5776e26.zip
Support videos stats in client
Diffstat (limited to 'client/src/app/+stats/stats-routing.module.ts')
-rw-r--r--client/src/app/+stats/stats-routing.module.ts25
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 @@
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
3import { VideoResolver } from '@app/shared/shared-main'
4import { VideoStatsComponent } from './video'
5
6const 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})
25export class StatsRoutingModule {}