]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-edit/video-update-routing.module.ts
Hack 459 regarding Angular & i18n
[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'
a685e25c
C
9
10const videoUpdateRoutes: Routes = [
11 {
12 path: '',
13 component: VideoUpdateComponent,
308c4275
C
14 canActivate: [ MetaGuard, LoginGuard ],
15 resolve: {
16 videoData: VideoUpdateResolver
17 }
a685e25c
C
18 }
19]
20
21@NgModule({
22 imports: [ RouterModule.forChild(videoUpdateRoutes) ],
23 exports: [ RouterModule ]
24})
25export class VideoUpdateRoutingModule {}