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'
|
2022-05-12 11:25:10 +02:00
|
|
|
import {properties} from "../../environments/environment";
|
2019-10-17 15:49:05 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forChild([
|
2020-11-11 15:44:21 +01:00
|
|
|
{ path: '', component: OpenaireDepositComponent, canActivate: [IsRouteEnabled], data: {
|
2022-05-12 11:25:10 +02:00
|
|
|
redirect: properties.errorLink
|
2019-10-17 15:49:05 +02:00
|
|
|
}, canDeactivate: [PreviousRouteRecorder] }
|
|
|
|
|
|
|
|
])
|
|
|
|
]
|
|
|
|
})
|
|
|
|
export class DepositRoutingModule { }
|