]>
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 | ||
f47bf2e1 | 6 | import { LoginGuard } from '../../core' |
a685e25c | 7 | import { VideoUpdateComponent } from './video-update.component' |
308c4275 | 8 | import { VideoUpdateResolver } from '@app/videos/+video-edit/video-update.resolver' |
772d5642 | 9 | import { CanDeactivateGuard } from '@app/shared/guards/can-deactivate-guard.service' |
a685e25c C |
10 | |
11 | const videoUpdateRoutes: Routes = [ | |
12 | { | |
13 | path: '', | |
14 | component: VideoUpdateComponent, | |
308c4275 | 15 | canActivate: [ MetaGuard, LoginGuard ], |
772d5642 | 16 | canDeactivate: [ CanDeactivateGuard ], |
308c4275 C |
17 | resolve: { |
18 | videoData: VideoUpdateResolver | |
19 | } | |
a685e25c C |
20 | } |
21 | ] | |
22 | ||
23 | @NgModule({ | |
24 | imports: [ RouterModule.forChild(videoUpdateRoutes) ], | |
25 | exports: [ RouterModule ] | |
26 | }) | |
27 | export class VideoUpdateRoutingModule {} |