2019-10-17 15:49:05 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
import { OpenaireDepositComponent } from './deposit.component';
|
|
|
|
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
|
|
|
import {IsRouteEnabled} from '../openaireLibrary/error/isRouteEnabled.guard'
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forChild([
|
2020-11-11 15:44:21 +01:00
|
|
|
{ path: '', component: OpenaireDepositComponent, canActivate: [IsRouteEnabled], data: {
|
2019-10-17 15:49:05 +02:00
|
|
|
redirect: '/error'
|
|
|
|
}, canDeactivate: [PreviousRouteRecorder] }
|
|
|
|
|
|
|
|
])
|
|
|
|
]
|
|
|
|
})
|
|
|
|
export class DepositRoutingModule { }
|