PeerTube/client/src/app/+videos/+video-edit/video-add-routing.module.ts

21 lines
570 B
TypeScript
Raw Normal View History

2017-10-09 14:28:44 +02:00
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
2020-06-23 14:10:17 +02:00
import { CanDeactivateGuard, LoginGuard } from '@app/core'
2017-10-09 14:28:44 +02:00
import { MetaGuard } from '@ngx-meta/core'
import { VideoAddComponent } from './video-add.component'
const videoAddRoutes: Routes = [
{
path: '',
component: VideoAddComponent,
canActivate: [ MetaGuard, LoginGuard ],
canDeactivate: [ CanDeactivateGuard ]
2017-10-09 14:28:44 +02:00
}
]
@NgModule({
imports: [ RouterModule.forChild(videoAddRoutes) ],
exports: [ RouterModule ]
})
export class VideoAddRoutingModule {}