2019-05-23 15:38:44 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
|
|
|
|
import { OpenaireDatasetComponent } from './dataset.component';
|
|
|
|
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
|
|
|
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
2022-05-18 14:13:42 +02:00
|
|
|
import {properties} from "../../../environments/environment";
|
2019-05-23 15:38:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forChild([
|
2019-09-24 14:42:17 +02:00
|
|
|
{ path: '', component: OpenaireDatasetComponent, canActivate: [FreeGuard], data: {
|
2022-05-18 14:13:42 +02:00
|
|
|
redirect: properties.errorLink
|
2019-05-23 15:38:44 +02:00
|
|
|
},canDeactivate: [PreviousRouteRecorder] }
|
|
|
|
])
|
|
|
|
]
|
|
|
|
})
|
|
|
|
export class DatasetRoutingModule { }
|