]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/src/app/videos/+video-edit/video-add-routing.module.ts
provide specific engine boundaries for nodejs and yarn
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-edit / video-add-routing.module.ts
... / ...
CommitLineData
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
3
4import { MetaGuard } from '@ngx-meta/core'
5
6import { LoginGuard } from '../../core'
7import { CanDeactivateGuard } from '../../shared/guards/can-deactivate-guard.service'
8import { VideoAddComponent } from './video-add.component'
9
10const videoAddRoutes: Routes = [
11 {
12 path: '',
13 component: VideoAddComponent,
14 canActivate: [ MetaGuard, LoginGuard ],
15 canDeactivate: [ CanDeactivateGuard ]
16 }
17]
18
19@NgModule({
20 imports: [ RouterModule.forChild(videoAddRoutes) ],
21 exports: [ RouterModule ]
22})
23export class VideoAddRoutingModule {}