1
|
import { NgModule } from '@angular/core';
|
2
|
import { Routes, RouterModule } from '@angular/router';
|
3
|
|
4
|
import { EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver';
|
5
|
import { EnvironmentSpecificService} from './openaireLibrary/utils/properties/environment-specific.service';
|
6
|
|
7
|
import { OpenaireErrorPageComponent } from './error/errorPage.component';
|
8
|
import {HomeComponent} from './home/home.component';
|
9
|
const routes: Routes = [
|
10
|
{ path: '', component:HomeComponent, resolve: { envSpecific: EnvironmentSpecificResolver }},
|
11
|
|
12
|
{ path: 'participate/deposit-datasets', loadChildren: './deposit/datasets/depositDatasets.module#LibDepositDatasetsModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
13
|
{ path: 'participate/deposit-datasets-result', loadChildren: './deposit/datasets/depositDatasetsResults.module#LibDepositDatasetsResultsModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
14
|
{ path: 'participate/deposit-subject-result', loadChildren: './deposit/datasets/depositBySubjectResults.module#LibDepositBySubjectResultsModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
15
|
{ path: 'participate/deposit-publications', loadChildren: './deposit/publications/depositPublications.module#LibDepositPublicationsModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
16
|
{ path: 'participate/deposit-publications-result', loadChildren: './deposit/publications/depositPublicationsResults.module#LibDepositPublicationsResultsModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
17
|
|
18
|
{ path: 'myclaims', loadChildren: './claims/myClaims/myClaims.module#LibMyClaimsModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
19
|
{ path: 'participate/claim', loadChildren: './claims/linking/linkingGeneric.module#LibLinkingGenericModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
20
|
{ path: 'participate/direct-claim', loadChildren: './claims/directLinking/directLinking.module#LibDirectLinkingModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
21
|
{ path: 'reload', loadChildren: './reload/libReload.module#LibReloadModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
22
|
{ path: 'user-info', loadChildren: './login/libUser.module#LibUserModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
23
|
{ path: 'error', component: OpenaireErrorPageComponent, resolve: { envSpecific: EnvironmentSpecificResolver }},
|
24
|
{ path: '**',pathMatch: 'full',component: OpenaireErrorPageComponent, resolve: { envSpecific: EnvironmentSpecificResolver }}
|
25
|
];
|
26
|
|
27
|
@NgModule({
|
28
|
imports: [RouterModule.forRoot(routes)],
|
29
|
exports: [RouterModule],
|
30
|
providers: [EnvironmentSpecificResolver, EnvironmentSpecificService]
|
31
|
})
|
32
|
export class AppRoutingModule { }
|