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