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