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';
|
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)},
|
2019-10-09 11:05:56 +02:00
|
|
|
{
|
2020-06-29 15:16:21 +02:00
|
|
|
path: 'browse',
|
2021-07-14 17:47:49 +02:00
|
|
|
loadChildren: () => import('./search-stakeholders/search-stakeholders.module').then(m => m.SearchStakeholdersModule)
|
2019-12-03 12:10:05 +01:00
|
|
|
},
|
2019-10-09 11:05:56 +02:00
|
|
|
{path: 'about', redirectTo: 'about/learn-how', pathMatch: 'full'},
|
|
|
|
{
|
|
|
|
path: 'about/learn-how',
|
2021-07-14 17:47:49 +02:00
|
|
|
loadChildren: () => import('./learn-how/learn-how.module').then(m => m.LearnHowModule)
|
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
|
|
|
},
|
|
|
|
{
|
|
|
|
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 {
|
|
|
|
}
|