Chocobozzz/PeerTube

View on GitHub
client/src/app/+stats/routes.ts

Summary

Maintainability
A
0 mins
Test Coverage
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