Revision 50587
Added by Argiro Kokogiannaki about 6 years ago
searchOrganizations-routing.module.ts | ||
---|---|---|
3 | 3 |
|
4 | 4 |
import{OpenaireSearchOrganizationsComponent} from './searchOrganizations.component'; |
5 | 5 |
import {FreeGuard,PreviousRouteRecorder, IsRouteEnabled} from 'ng-openaire-library'; |
6 |
import {OpenaireProperties} from '../../utils/openaireProperties'; |
|
6 | 7 |
|
7 | 8 |
@NgModule({ |
8 | 9 |
imports: [ |
9 | 10 |
RouterModule.forChild([ |
10 | 11 |
{ path: '', component: OpenaireSearchOrganizationsComponent, canActivate: [FreeGuard, IsRouteEnabled], data: { |
11 |
redirect: '/error' |
|
12 |
redirect: '/error', api: OpenaireProperties.adminToolsAPIURL, community :OpenaireProperties.adminToolsCommunity
|
|
12 | 13 |
}, canDeactivate: [PreviousRouteRecorder] } |
13 | 14 |
|
14 | 15 |
]) |
Also available in: Unified diff
USe a json file to read properties | replace openaire Properties