]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-watch/video-watch-routing.module.ts
Merge branch 'release/4.1.0' into develop
[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
C
3import { VideoWatchComponent } from './video-watch.component'
4
5const videoWatchRoutes: Routes = [
6 {
a1eda903 7 path: 'p/:playlistId',
0f01a8ba 8 component: VideoWatchComponent
f0a39880
C
9 },
10 {
e2f01c47
C
11 path: ':videoId/comments/:commentId',
12 redirectTo: ':videoId'
f0a39880
C
13 },
14 {
e2f01c47 15 path: ':videoId',
0f01a8ba 16 component: VideoWatchComponent
a685e25c
C
17 }
18]
19
20@NgModule({
21 imports: [ RouterModule.forChild(videoWatchRoutes) ],
22 exports: [ RouterModule ]
23})
24export class VideoWatchRoutingModule {}