2020-03-04 15:31:08 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
|
|
|
|
import {OpenaireResultComponent } from './result.component';
|
|
|
|
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
|
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forChild([
|
2020-11-11 15:44:21 +01:00
|
|
|
{ path: '', component: OpenaireResultComponent, data: {
|
2020-03-04 15:31:08 +01:00
|
|
|
redirect: '/error', community : 'openaire'
|
|
|
|
},canDeactivate: [PreviousRouteRecorder] }
|
|
|
|
])
|
|
|
|
]
|
|
|
|
})
|
|
|
|
export class ResultRoutingModule { }
|