2019-10-09 11:05:56 +02:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {RouterModule, Routes} from '@angular/router';
|
|
|
|
import {OpenaireErrorPageComponent} from './error/errorPage.component';
|
2022-10-10 15:57:46 +02:00
|
|
|
import {isDevelopmentGuard} from './openaireLibrary/error/isDevelopmentGuard.guard';
|
2019-01-09 12:05:23 +01:00
|
|
|
|
|
|
|
const routes: Routes = [
|
2021-07-14 17:47:49 +02:00
|
|
|
{path: '', loadChildren: () => import('./home/home.module').then(m => m.HomeModule)},
|
2022-06-06 11:23:03 +02:00
|
|
|
{path: 'about/learn-how', redirectTo: 'about', pathMatch: 'full'},
|
2019-10-09 11:05:56 +02:00
|
|
|
{
|
2022-06-06 11:23:03 +02:00
|
|
|
path: 'about',
|
2022-10-24 15:38:21 +02:00
|
|
|
loadChildren: () => import('./about/about.module').then(m => m.AboutModule)
|
2019-10-09 11:05:56 +02:00
|
|
|
},
|
2022-08-02 22:34:59 +02:00
|
|
|
{
|
|
|
|
path: 'methodology',
|
|
|
|
loadChildren: () => import('./openaireLibrary/monitor/methodology/methodology.module').then(m => m.MethodologyModule)
|
|
|
|
},
|
2022-08-05 14:51:13 +02:00
|
|
|
{
|
2022-08-29 15:31:29 +02:00
|
|
|
path: 'indicators',
|
2022-08-02 22:34:59 +02:00
|
|
|
loadChildren: () => import('./openaireLibrary/monitor/indicators/indicators.module').then(m => m.IndicatorsModule)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'browse',
|
|
|
|
loadChildren: () => import('./search-stakeholders/search-stakeholders.module').then(m => m.SearchStakeholdersModule)
|
|
|
|
},
|
2019-10-09 11:05:56 +02:00
|
|
|
{
|
|
|
|
path: 'contact-us',
|
2021-07-14 17:47:49 +02:00
|
|
|
loadChildren: () => import('./contact/contact.module').then(m => m.ContactModule)
|
2019-10-09 11:05:56 +02:00
|
|
|
},
|
2022-02-21 14:06:18 +01:00
|
|
|
{
|
|
|
|
path: 'get-started',
|
|
|
|
loadChildren: () => import('./get-started/get-started.module').then(m => m.GetStartedModule)
|
|
|
|
},
|
2022-02-16 17:19:35 +01:00
|
|
|
{
|
|
|
|
path: 'my-dashboards',
|
|
|
|
loadChildren: () => import('./my-stakeholders/my-stakeholders.module').then(m => m.MyStakeholdersModule)},
|
2019-10-09 11:05:56 +02:00
|
|
|
{
|
|
|
|
path: 'reload',
|
2021-07-14 17:47:49 +02:00
|
|
|
loadChildren: () => import('./reload/libReload.module').then(m => m.LibReloadModule)
|
2019-10-09 11:05:56 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'user-info',
|
2021-07-14 17:47:49 +02:00
|
|
|
loadChildren: () => import('./login/libUser.module').then(m => m.LibUserModule)
|
2019-10-09 11:05:56 +02:00
|
|
|
},
|
2021-04-01 16:45:13 +02:00
|
|
|
{path: 'error', component: OpenaireErrorPageComponent},
|
2021-07-14 17:47:49 +02:00
|
|
|
{path: 'theme', loadChildren: () => import('./openaireLibrary/utils/theme/theme.module').then(m => m.ThemeModule)},
|
2019-10-09 11:05:56 +02:00
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
pathMatch: 'full',
|
2021-04-01 16:45:13 +02:00
|
|
|
component: OpenaireErrorPageComponent
|
2019-10-09 11:05:56 +02:00
|
|
|
}
|
2019-01-09 12:05:23 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
2021-07-14 17:47:49 +02:00
|
|
|
imports: [RouterModule.forRoot(routes, {
|
|
|
|
onSameUrlNavigation: "reload"
|
|
|
|
})],
|
2021-04-01 16:45:13 +02:00
|
|
|
exports: [RouterModule]
|
2019-01-09 12:05:23 +01:00
|
|
|
})
|
2019-10-09 11:05:56 +02:00
|
|
|
export class AppRoutingModule {
|
|
|
|
}
|