]>
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 | { | |
10 | path: '', | |
11 | component: VideoWatchComponent, | |
f47bf2e1 | 12 | canActivate: [ MetaGuard ] |
d5b53822 | 13 | }, |
14 | { | |
15 | path: 'comment/:commentId', | |
16 | component: VideoWatchComponent, | |
17 | canActivate: [ MetaGuard ] | |
a685e25c C |
18 | } |
19 | ] | |
20 | ||
21 | @NgModule({ | |
22 | imports: [ RouterModule.forChild(videoWatchRoutes) ], | |
23 | exports: [ RouterModule ] | |
24 | }) | |
25 | export class VideoWatchRoutingModule {} |