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";
|
2022-05-12 11:25:10 +02:00
|
|
|
import {properties} from "../../environments/environment";
|
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: {
|
2022-05-12 11:25:10 +02:00
|
|
|
redirect: properties.errorLink, community : 'openaire'
|
2021-02-09 13:16:13 +01:00
|
|
|
},
|
2021-01-13 19:46:30 +01:00
|
|
|
canDeactivate: [PreviousRouteRecorder] }
|
|
|
|
|
|
|
|
])
|
|
|
|
]
|
|
|
|
})
|
|
|
|
export class OrcidRoutingModule { }
|