aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/+stats/stats-routing.module.ts
blob: b6225cafd3436ee5d1dddcb7f2b495ec298149fc (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                      
                                      





                                                       
                                
















                                                  
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
import { LoginGuard } from '@app/core'
import { VideoResolver } from '@app/shared/shared-main'
import { VideoStatsComponent } from './video'

const statsRoutes: Routes = [
  {
    path: 'videos/:videoId',
    canActivate: [ LoginGuard ],
    component: VideoStatsComponent,
    data: {
      meta: {
        title: $localize`Video stats`
      }
    },
    resolve: {
      video: VideoResolver
    }
  }
]

@NgModule({
  imports: [ RouterModule.forChild(statsRoutes) ],
  exports: [ RouterModule ]
})
export class StatsRoutingModule {}