Revision 60295
Added by Konstantinos Triantafyllou almost 4 years ago
modules/uoa-admin-portal/branches/new-UI/src/app/pages/pages-routing.module.ts | ||
---|---|---|
1 |
import {NgModule} from "@angular/core"; |
|
2 |
import {RouterModule} from "@angular/router"; |
|
3 |
import {ConnectRIGuard} from "../openaireLibrary/connect/communityGuard/connectRIGuard.guard"; |
|
4 |
|
|
5 |
@NgModule({ |
|
6 |
imports: [RouterModule.forChild([ |
|
7 |
{ |
|
8 |
path: 'users', |
|
9 |
loadChildren: './users/users.module#UsersModule', |
|
10 |
pathMatch: 'full' |
|
11 |
}, |
|
12 |
{ |
|
13 |
path: 'mining', |
|
14 |
loadChildren: './mining/mining.module#MiningModule', |
|
15 |
canActivate: [ConnectRIGuard] |
|
16 |
}, |
|
17 |
{ |
|
18 |
path: 'admin-tools', |
|
19 |
loadChildren: './admin-tools/admin-tools-routing.module#AdminToolsRoutingModule', |
|
20 |
data: { |
|
21 |
param: 'community' |
|
22 |
} |
|
23 |
} |
|
24 |
])] |
|
25 |
}) |
|
26 |
export class PagesRoutingModule { |
|
27 |
|
|
28 |
} |
modules/uoa-admin-portal/branches/new-UI/src/app/pages/community-routing.module.ts | ||
---|---|---|
1 |
import {NgModule} from "@angular/core"; |
|
2 |
import {RouterModule} from "@angular/router"; |
|
3 |
import {ConnectRIGuard} from "../openaireLibrary/connect/communityGuard/connectRIGuard.guard"; |
|
4 |
|
|
5 |
@NgModule({ |
|
6 |
imports: [RouterModule.forChild([ |
|
7 |
{ |
|
8 |
path: 'users', |
|
9 |
loadChildren: './users/users.module#UsersModule', |
|
10 |
pathMatch: 'full' |
|
11 |
}, |
|
12 |
{ |
|
13 |
path: 'mining', |
|
14 |
loadChildren: './mining/mining.module#MiningModule', |
|
15 |
canActivate: [ConnectRIGuard] |
|
16 |
}, |
|
17 |
{ |
|
18 |
path: 'admin-tools', |
|
19 |
loadChildren: './admin-tools/admin-tools-routing.module#AdminToolsRoutingModule', |
|
20 |
data: { |
|
21 |
param: 'community' |
|
22 |
} |
|
23 |
} |
|
24 |
])] |
|
25 |
}) |
|
26 |
export class CommunityRoutingModule { |
|
27 |
|
|
28 |
} |
modules/uoa-admin-portal/branches/new-UI/src/app/app.routing.ts | ||
---|---|---|
209 | 209 |
}, |
210 | 210 |
{ |
211 | 211 |
path: ':community', |
212 |
loadChildren: './pages/pages-routing.module#PagesRoutingModule',
|
|
212 |
loadChildren: './pages/community-routing.module#CommunityRoutingModule',
|
|
213 | 213 |
canActivate: [ConnectAdminLoginGuard] |
214 | 214 |
}, |
215 | 215 |
{ path: '**', |
Also available in: Unified diff
[Admin | New UI]: Rename page-routing to community-routing