2021-01-13 19:46:30 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
|
|
|
|
import {OpenaireOrcidComponent} from './orcid.component';
|
|
|
|
import {PreviousRouteRecorder} from "../openaireLibrary/utils/piwik/previousRouteRecorder.guard";
|
2021-02-09 13:16:13 +01:00
|
|
|
import {LoginGuard} from "../openaireLibrary/login/loginGuard.guard";
|
2021-01-13 19:46:30 +01:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forChild([
|
2021-02-09 13:16:13 +01:00
|
|
|
{ path: '', component: OpenaireOrcidComponent,
|
|
|
|
canActivate: [LoginGuard], data: {
|
|
|
|
redirect: '/error', community : 'openaire'
|
|
|
|
},
|
2021-01-13 19:46:30 +01:00
|
|
|
canDeactivate: [PreviousRouteRecorder] }
|
|
|
|
|
|
|
|
])
|
|
|
|
]
|
|
|
|
})
|
|
|
|
export class OrcidRoutingModule { }
|