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

20 lines
516 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 { VideoAddComponent } from './video-add.component'
const videoAddRoutes: Routes = [
{
path: '',
component: VideoAddComponent,
2021-05-14 16:12:45 +02:00
canActivate: [ LoginGuard ],
canDeactivate: [ CanDeactivateGuard ]
2017-10-09 14:28:44 +02:00
}
]
@NgModule({
imports: [ RouterModule.forChild(videoAddRoutes) ],
exports: [ RouterModule ]
})
export class VideoAddRoutingModule {}