2018-01-26 16:00:07 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
import { OpenaireLinkingComponent } from './linkingGeneric.component';
|
|
|
|
|
|
|
|
import{ PreviousRouteRecorder, IsRouteEnabled, LoginGuard} from 'ng-openaire-library';
|
2018-02-12 12:41:40 +01:00
|
|
|
import {Properties} from '../../utils/properties';
|
2018-01-26 16:00:07 +01:00
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forChild([
|
|
|
|
{ path: '', component: OpenaireLinkingComponent, canActivate: [IsRouteEnabled, LoginGuard], data: {
|
2018-02-12 12:41:40 +01:00
|
|
|
redirect: '/error', api: Properties.adminToolsAPIURL, community :Properties.adminToolsCommunity
|
2018-01-26 16:00:07 +01:00
|
|
|
}, canDeactivate: [PreviousRouteRecorder]},
|
|
|
|
|
|
|
|
])
|
|
|
|
]
|
|
|
|
})
|
|
|
|
export class LinkingRoutingModule { }
|