]>
Commit | Line | Data |
---|---|---|
a685e25c C |
1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | |
a685e25c | 3 | import { MetaGuard } from '@ngx-meta/core' |
a685e25c C |
4 | import { VideoWatchComponent } from './video-watch.component' |
5 | ||
6 | const 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 | }) | |
27 | export class VideoWatchRoutingModule {} |