]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/+video-watch/video-watch-routing.module.ts
0d78090445f2c1a802d574fb0e55c07db4c3b186
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-watch-routing.module.ts
1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3
4 import { MetaGuard } from '@ngx-meta/core'
5
6 import { VideoWatchComponent } from './video-watch.component'
7
8 const videoWatchRoutes: Routes = [
9 {
10 path: 'playlist/:uuid',
11 component: VideoWatchComponent,
12 canActivate: [ MetaGuard ]
13 },
14 {
15 path: ':uuid/comments/:commentId',
16 redirectTo: ':uuid'
17 },
18 {
19 path: ':uuid',
20 component: VideoWatchComponent,
21 canActivate: [ MetaGuard ]
22 }
23 ]
24
25 @NgModule({
26 imports: [ RouterModule.forChild(videoWatchRoutes) ],
27 exports: [ RouterModule ]
28 })
29 export class VideoWatchRoutingModule {}