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