2021-01-26 18:01:22 +01:00
|
|
|
import {NgModule} from "@angular/core";
|
|
|
|
import {RouterModule} from "@angular/router";
|
2022-11-07 16:01:30 +01:00
|
|
|
import {HelperFunctions} from "../openaireLibrary/utils/HelperFunctions.class";
|
2021-01-26 18:01:22 +01:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild([
|
|
|
|
{
|
|
|
|
path: '',
|
2021-07-14 18:02:04 +02:00
|
|
|
loadChildren: () => import('../general/general.module').then(m => m.GeneralModule),
|
2021-01-26 18:01:22 +01:00
|
|
|
pathMatch: 'full'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'users',
|
2022-06-26 22:42:30 +02:00
|
|
|
redirectTo: 'users/manager',
|
|
|
|
pathMatch: 'full'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'users/:user_type',
|
2021-07-14 18:02:04 +02:00
|
|
|
loadChildren: () => import('../users/users.module').then(m => m.UsersModule),
|
2021-01-26 18:01:22 +01:00
|
|
|
pathMatch: 'full'
|
|
|
|
},
|
|
|
|
{
|
2022-11-07 16:01:30 +01:00
|
|
|
matcher: HelperFunctions.routingMatcher(['indicators', 'indicators/:topic']),
|
2023-10-19 15:33:28 +02:00
|
|
|
loadChildren: () => import('../openaireLibrary/monitor-admin/topic/topic.module').then(m => m.TopicModule),
|
2022-11-04 15:36:51 +01:00
|
|
|
data: {hasInternalSidebar: true},
|
2021-01-26 18:01:22 +01:00
|
|
|
pathMatch: 'full'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'admin-tools',
|
2021-07-14 18:02:04 +02:00
|
|
|
loadChildren: () => import('../admin-tools/admin-tools-routing.module').then(m => m.AdminToolsRoutingModule),
|
2022-11-04 15:36:51 +01:00
|
|
|
data: {param: 'stakeholder', parentClass: 'monitor'}
|
2021-01-26 18:01:22 +01:00
|
|
|
}
|
|
|
|
])]
|
|
|
|
})
|
|
|
|
export class AdminStakeholderRoutingModule {
|
|
|
|
|
|
|
|
}
|