]>
Commit | Line | Data |
---|---|---|
a685e25c C |
1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | |
67ed6552 | 3 | import { CanDeactivateGuard, LoginGuard } from '@app/core' |
a685e25c C |
4 | import { VideoAddComponent } from './video-add.component' |
5 | ||
6 | const videoAddRoutes: Routes = [ | |
7 | { | |
8 | path: '', | |
9 | component: VideoAddComponent, | |
0f01a8ba | 10 | canActivate: [ LoginGuard ], |
f6a043df | 11 | canDeactivate: [ CanDeactivateGuard ] |
a685e25c C |
12 | } |
13 | ] | |
14 | ||
15 | @NgModule({ | |
16 | imports: [ RouterModule.forChild(videoAddRoutes) ], | |
17 | exports: [ RouterModule ] | |
18 | }) | |
19 | export class VideoAddRoutingModule {} |