]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+stats/stats-routing.module.ts
Added filter to sort videos by name (alphabetical order)
[github/Chocobozzz/PeerTube.git] / client / src / app / +stats / stats-routing.module.ts
CommitLineData
384ba8b7
C
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
f40712ab 3import { LoginGuard } from '@app/core'
384ba8b7
C
4import { VideoResolver } from '@app/shared/shared-main'
5import { VideoStatsComponent } from './video'
6
7const 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})
27export class StatsRoutingModule {}