]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-edit/video-update-routing.module.ts
Lazy load all routes
[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'
67ed6552 3import { CanDeactivateGuard, LoginGuard } from '@app/core'
a685e25c 4import { MetaGuard } from '@ngx-meta/core'
a685e25c 5import { VideoUpdateComponent } from './video-update.component'
67ed6552 6import { VideoUpdateResolver } from './video-update.resolver'
a685e25c
C
7
8const videoUpdateRoutes: Routes = [
9 {
10 path: '',
11 component: VideoUpdateComponent,
308c4275 12 canActivate: [ MetaGuard, LoginGuard ],
772d5642 13 canDeactivate: [ CanDeactivateGuard ],
308c4275
C
14 resolve: {
15 videoData: VideoUpdateResolver
16 }
a685e25c
C
17 }
18]
19
20@NgModule({
21 imports: [ RouterModule.forChild(videoUpdateRoutes) ],
22 exports: [ RouterModule ]
23})
24export class VideoUpdateRoutingModule {}