]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch-routing.module.ts
Playlist videos component
[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 {
f0a39880
C
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',
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 {}