2019-05-23 15:38:44 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
|
|
|
|
|
|
|
|
import { EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver';
|
|
|
|
import { EnvironmentSpecificService} from './openaireLibrary/utils/properties/environment-specific.service';
|
|
|
|
|
|
|
|
import { OpenaireErrorPageComponent } from './error/errorPage.component';
|
|
|
|
|
|
|
|
const routes: Routes = [
|
2020-11-18 18:01:52 +01:00
|
|
|
{ path: '', loadChildren: './aggregator/aggregator.module#AggregatorModule'},
|
|
|
|
{ path: ':id', loadChildren: './aggregator/aggregator.module#AggregatorModule'},
|
|
|
|
{ path: 'error', component: OpenaireErrorPageComponent},
|
|
|
|
{ path: '**',pathMatch: 'full',component: OpenaireErrorPageComponent}
|
2019-05-23 15:38:44 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forRoot(routes)],
|
|
|
|
exports: [RouterModule],
|
|
|
|
providers: [EnvironmentSpecificResolver, EnvironmentSpecificService]
|
|
|
|
})
|
|
|
|
export class AppRoutingModule { }
|