You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import {NgModule} from "@angular/core";
|
|
import {RouterModule} from "@angular/router";
|
|
import {ConnectRIGuard} from "../openaireLibrary/connect/communityGuard/connectRIGuard.guard";
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild([
|
|
{
|
|
path: 'info',
|
|
loadChildren: () => import('./community-info/community-info-routing.module').then(m => m.CommunityInfoRoutingModule),
|
|
},
|
|
{
|
|
path: 'users',
|
|
loadChildren: () => import('./users/users-routing.module').then(m => m.UsersRoutingModule)
|
|
},
|
|
{
|
|
path: 'mining',
|
|
loadChildren: () => import('./mining/mining.module').then(m => m.MiningModule),
|
|
canActivateChild: [ConnectRIGuard]
|
|
},
|
|
{
|
|
path: 'admin-tools',
|
|
loadChildren: () => import('./admin-tools/admin-tools-routing.module').then(m => m.AdminToolsRoutingModule),
|
|
data: {
|
|
param: 'community'
|
|
}
|
|
},
|
|
{
|
|
path: 'stats',
|
|
loadChildren: () => import('./stats/stats.module').then(m => m.StatsModule)
|
|
},
|
|
{
|
|
path: 'customize-layout',
|
|
loadChildren: () => import('./customization/customization.module').then(m => m.CustomizationModule),
|
|
}
|
|
])]
|
|
})
|
|
export class CommunityRoutingModule {}
|