]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-edit/video-update-routing.module.ts
provide specific engine boundaries for nodejs and yarn
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-edit / video-update-routing.module.ts
CommitLineData
a685e25c
C
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
3
4import { MetaGuard } from '@ngx-meta/core'
5
f47bf2e1 6import { LoginGuard } from '../../core'
a685e25c 7import { VideoUpdateComponent } from './video-update.component'
308c4275 8import { VideoUpdateResolver } from '@app/videos/+video-edit/video-update.resolver'
772d5642 9import { CanDeactivateGuard } from '@app/shared/guards/can-deactivate-guard.service'
a685e25c
C
10
11const 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})
27export class VideoUpdateRoutingModule {}