1 |
61384
|
k.triantaf
|
import {NgModule} from '@angular/core';
|
2 |
|
|
import {RouterModule} from '@angular/router';
|
3 |
|
|
import {ConnectCommunityGuard} from "../../openaireLibrary/connect/communityGuard/connectCommunityGuard.guard";
|
4 |
|
|
|
5 |
|
|
@NgModule({
|
6 |
|
|
imports: [
|
7 |
|
|
RouterModule.forChild([
|
8 |
|
|
{path: '', redirectTo: 'profile', pathMatch: 'full'},
|
9 |
|
|
{path: 'profile', loadChildren: () => import('./profile/profile.module').then(m => m.ProfileModule)},
|
10 |
|
|
{path: 'organizations', loadChildren: () => import('../affiliations/affiliations.module').then(m => m.AffiliationsModule)},
|
11 |
|
|
{path: 'projects', loadChildren: () => import('../projects/communityProjects.module').then(m => m.CommunityProjectsModule)},
|
12 |
|
|
{path: 'content-providers', loadChildren: () => import('../content-providers/communityContentProviders.module').then(m => m.CommunityContentProvidersModule)},
|
13 |
|
|
{path: 'content-providers/:provider', loadChildren: () => import('../content-providers/criteria/criteria.module').then(m => m.CriteriaModule)},
|
14 |
|
|
{path: 'zenodo-communities', loadChildren: () => import('../zenodo-communities/zenodo-communities.module').then(m => m.ZenodoCommunitiesModule)},
|
15 |
|
|
{path: 'subjects', canActivateChild: [ConnectCommunityGuard], loadChildren: () => import('../subjects/subjects-edit-form/subjects-edit-form.module').then(m => m.SubjectsEditFormModule)},
|
16 |
|
|
])
|
17 |
|
|
],
|
18 |
|
|
providers: [ConnectCommunityGuard]
|
19 |
|
|
})
|
20 |
|
|
export class CommunityInfoRoutingModule {
|
21 |
|
|
}
|