]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+videos/+video-edit/video-add-routing.module.ts
Reorganize client shared modules
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-edit / video-add-routing.module.ts
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 {}