]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-edit/video-add-routing.module.ts
Add loading bar when updating a video
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-edit / video-add-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'
f6a043df 7import { CanDeactivateGuard } from '../../shared/guards/can-deactivate-guard.service'
a685e25c
C
8import { VideoAddComponent } from './video-add.component'
9
10const videoAddRoutes: Routes = [
11 {
12 path: '',
13 component: VideoAddComponent,
529479f9 14 canActivate: [ MetaGuard, LoginGuard ],
f6a043df 15 canDeactivate: [ CanDeactivateGuard ]
a685e25c
C
16 }
17]
18
19@NgModule({
20 imports: [ RouterModule.forChild(videoAddRoutes) ],
21 exports: [ RouterModule ]
22})
23export class VideoAddRoutingModule {}