client/src/app/+stats/routes.ts
import { Routes } from '@angular/router'
import { LoginGuard } from '@app/core'
import { VideoStatsComponent, VideoStatsService } from './video'
import { VideoResolver } from '@app/shared/shared-main/video/video.resolver'
import { LiveVideoService } from '@app/shared/shared-video-live/live-video.service'
export default [
{
path: 'videos/:videoId',
canActivate: [ LoginGuard ],
component: VideoStatsComponent,
data: {
meta: {
title: $localize`Video stats`
}
},
providers: [
LiveVideoService,
VideoStatsService,
VideoResolver
],
resolve: {
video: VideoResolver
}
}
] satisfies Routes