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-04-01 16:45:13 +02:00
|
|
|
{path: '', loadChildren: './home/home.module#HomeModule'},
|
2019-10-09 11:05:56 +02:00
|
|
|
{
|
2020-06-29 15:16:21 +02:00
|
|
|
path: 'browse',
|
2021-04-01 16:45:13 +02:00
|
|
|
loadChildren: './search-stakeholders/search-stakeholders.module#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-04-01 16:45:13 +02:00
|
|
|
loadChildren: './learn-how/learn-how.module#LearnHowModule'
|
2019-10-09 11:05:56 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'contact-us',
|
2021-04-01 16:45:13 +02:00
|
|
|
loadChildren: './contact/contact.module#ContactModule'
|
2019-10-09 11:05:56 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'reload',
|
2021-04-01 16:45:13 +02:00
|
|
|
loadChildren: './reload/libReload.module#LibReloadModule'
|
2019-10-09 11:05:56 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'user-info',
|
2021-04-01 16:45:13 +02:00
|
|
|
loadChildren: './login/libUser.module#LibUserModule'
|
2019-10-09 11:05:56 +02:00
|
|
|
},
|
2021-04-01 16:45:13 +02:00
|
|
|
{path: 'error', component: OpenaireErrorPageComponent},
|
|
|
|
{path: 'theme', loadChildren: './openaireLibrary/utils/theme/theme.module#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({
|
|
|
|
imports: [RouterModule.forRoot(routes)],
|
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 {
|
|
|
|
}
|