1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
4 import { MetaGuard } from '@ngx-meta/core'
6 import { VideoAddComponent, VideoUpdateComponent } from './video-edit'
7 import { VideoListComponent } from './video-list'
8 import { VideosComponent } from './videos.component'
9 import { VideoWatchComponent } from './video-watch'
11 const videosRoutes: Routes = [
14 component: VideosComponent,
15 canActivateChild: [ MetaGuard ],
19 component: VideoListComponent,
28 component: VideoAddComponent,
37 component: VideoUpdateComponent,
46 redirectTo: 'watch/:uuid'
50 component: VideoWatchComponent
57 imports: [ RouterModule.forChild(videosRoutes) ],
58 exports: [ RouterModule ]
60 export class VideosRoutingModule {}