PeerTube/client/src/app/+videos/+video-watch/video-watch-routing.module.ts

25 lines
550 B
TypeScript
Raw Normal View History

2017-10-09 14:28:44 +02:00
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
import { VideoWatchComponent } from './video-watch.component'
const videoWatchRoutes: Routes = [
{
path: 'p/:playlistId',
2021-05-14 16:12:45 +02:00
component: VideoWatchComponent
2019-03-07 17:06:00 +01:00
},
{
2019-03-13 14:18:58 +01:00
path: ':videoId/comments/:commentId',
redirectTo: ':videoId'
2019-03-07 17:06:00 +01:00
},
{
2019-03-13 14:18:58 +01:00
path: ':videoId',
2021-05-14 16:12:45 +02:00
component: VideoWatchComponent
2017-10-09 14:28:44 +02:00
}
]
@NgModule({
imports: [ RouterModule.forChild(videoWatchRoutes) ],
exports: [ RouterModule ]
})
export class VideoWatchRoutingModule {}