2018-01-26 16:00:07 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
|
|
|
|
import { OpenaireProjectComponent } from './project.component';
|
|
|
|
import {FreeGuard,PreviousRouteRecorder, IsRouteEnabled} 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: OpenaireProjectComponent, canActivate: [FreeGuard, IsRouteEnabled], 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 ProjectRoutingModule { }
|