diff options
Diffstat (limited to 'client/src/app/+videos/+video-edit/video-add-routing.module.ts')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-add-routing.module.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add-routing.module.ts b/client/src/app/+videos/+video-edit/video-add-routing.module.ts new file mode 100644 index 000000000..9ff66bea0 --- /dev/null +++ b/client/src/app/+videos/+video-edit/video-add-routing.module.ts | |||
@@ -0,0 +1,20 @@ | |||
1 | import { NgModule } from '@angular/core' | ||
2 | import { RouterModule, Routes } from '@angular/router' | ||
3 | import { CanDeactivateGuard, LoginGuard } from '@app/core' | ||
4 | import { MetaGuard } from '@ngx-meta/core' | ||
5 | import { VideoAddComponent } from './video-add.component' | ||
6 | |||
7 | const videoAddRoutes: Routes = [ | ||
8 | { | ||
9 | path: '', | ||
10 | component: VideoAddComponent, | ||
11 | canActivate: [ MetaGuard, LoginGuard ], | ||
12 | canDeactivate: [ CanDeactivateGuard ] | ||
13 | } | ||
14 | ] | ||
15 | |||
16 | @NgModule({ | ||
17 | imports: [ RouterModule.forChild(videoAddRoutes) ], | ||
18 | exports: [ RouterModule ] | ||
19 | }) | ||
20 | export class VideoAddRoutingModule {} | ||