1
|
import {NgModule} from "@angular/core";
|
2
|
import {RouterModule} from "@angular/router";
|
3
|
import {ConnectRIGuard} from "../openaireLibrary/connect/communityGuard/connectRIGuard.guard";
|
4
|
import {EnvironmentSpecificResolver} from '../openaireLibrary/utils/properties/environmentSpecificResolver';
|
5
|
|
6
|
@NgModule({
|
7
|
imports: [RouterModule.forChild([
|
8
|
{
|
9
|
path: 'info',
|
10
|
loadChildren: './community-info/community-info-routing.module#CommunityInfoRoutingModule',
|
11
|
},
|
12
|
{
|
13
|
path: 'users',
|
14
|
loadChildren: './users/users-routing.module#UsersRoutingModule'
|
15
|
},
|
16
|
{
|
17
|
path: 'mining',
|
18
|
loadChildren: './mining/mining.module#MiningModule',
|
19
|
canActivateChild: [ConnectRIGuard]
|
20
|
},
|
21
|
{
|
22
|
path: 'admin-tools',
|
23
|
loadChildren: './admin-tools/admin-tools-routing.module#AdminToolsRoutingModule',
|
24
|
data: {
|
25
|
param: 'community'
|
26
|
}
|
27
|
},
|
28
|
{
|
29
|
path: 'stats',
|
30
|
loadChildren: './stats/stats.module#StatsModule',
|
31
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
32
|
},
|
33
|
{
|
34
|
path: 'customize-layout',
|
35
|
loadChildren: './customization/customization.module#CustomizationModule',
|
36
|
}
|
37
|
])]
|
38
|
})
|
39
|
export class CommunityRoutingModule {
|
40
|
|
41
|
}
|