Project

General

Profile

1 60426 konstantin
import {NgModule} from '@angular/core';
2
import {RouterModule} from '@angular/router';
3 60562 k.triantaf
import {ConnectCommunityGuard} from "../../openaireLibrary/connect/communityGuard/connectCommunityGuard.guard";
4 60426 konstantin
5
@NgModule({
6
  imports: [
7
    RouterModule.forChild([
8
      {path: '', redirectTo: 'profile', pathMatch: 'full'},
9
      {path: 'profile', loadChildren: './profile/profile.module#ProfileModule'},
10 60557 k.triantaf
      {path: 'organizations', loadChildren: '../affiliations/affiliations.module#AffiliationsModule'},
11 60565 argiro.kok
      {path: 'zenodo-communities', loadChildren: '../zenodo-communities/zenodo-communities.module#ZenodoCommunitiesModule'},
12 60672 k.triantaf
      {path: 'subjects', canActivateChild: [ConnectCommunityGuard], loadChildren: '../subjects/subjects-edit-form/subjects-edit-form.module#SubjectsEditFormModule'},
13
      {path: 'content-providers/:provider', loadChildren: '../community/content-providers/criteria/criteria.module#CriteriaModule'},
14 60426 konstantin
    ])
15 60562 k.triantaf
  ],
16
  providers: [ConnectCommunityGuard]
17 60426 konstantin
})
18
export class CommunityInfoRoutingModule {
19 60445 argiro.kok
}