blob: 0d78090445f2c1a802d574fb0e55c07db4c3b186 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
import { MetaGuard } from '@ngx-meta/core'
import { VideoWatchComponent } from './video-watch.component'
const videoWatchRoutes: Routes = [
{
path: 'playlist/:uuid',
component: VideoWatchComponent,
canActivate: [ MetaGuard ]
},
{
path: ':uuid/comments/:commentId',
redirectTo: ':uuid'
},
{
path: ':uuid',
component: VideoWatchComponent,
canActivate: [ MetaGuard ]
}
]
@NgModule({
imports: [ RouterModule.forChild(videoWatchRoutes) ],
exports: [ RouterModule ]
})
export class VideoWatchRoutingModule {}
|