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