Revision 53302
Added by Myrto Koukouli about 6 years ago
compatibility.routing.ts | ||
---|---|---|
9 | 9 |
import { CompatibilityMonitorRepoComponent } from './compatibility-monitor-repo.component'; |
10 | 10 |
import { CompatibilityMonitorFullHistoryRepoComponent } from './compatibility-monitor-fullHistory-repo.component'; |
11 | 11 |
import { CompatibilityValidateComponent } from './compatibility-validate.component'; |
12 |
import { AuthGuardService } from '../../services/auth-guard.service'; |
|
12 | 13 |
|
13 | 14 |
const compatibilityRoutes: Routes = [ |
14 | 15 |
{ |
... | ... | |
17 | 18 |
children: [ |
18 | 19 |
{ |
19 | 20 |
path: 'validate', |
20 |
component: CompatibilityValidateComponent |
|
21 |
component: CompatibilityValidateComponent, |
|
22 |
canActivate: [AuthGuardService] |
|
21 | 23 |
}, |
22 | 24 |
{ |
23 | 25 |
path: 'validate/:type', |
24 |
component: CompatibilityValidateTypeComponent |
|
26 |
component: CompatibilityValidateTypeComponent, |
|
27 |
canActivate: [AuthGuardService] |
|
25 | 28 |
}, |
26 | 29 |
{ |
27 | 30 |
path: 'browseHistory', |
28 |
component: CompatibilityValidationHistoryComponent |
|
31 |
component: CompatibilityValidationHistoryComponent, |
|
32 |
canActivate: [AuthGuardService] |
|
29 | 33 |
}, |
30 | 34 |
{ |
31 | 35 |
path: 'browseHistory/:id', |
... | ... | |
33 | 37 |
}, |
34 | 38 |
{ |
35 | 39 |
path: 'monitor', |
36 |
component: CompatibilityMonitorComponent |
|
40 |
component: CompatibilityMonitorComponent, |
|
41 |
canActivate: [AuthGuardService] |
|
37 | 42 |
}, |
38 | 43 |
{ |
39 | 44 |
path: 'monitor/:id', |
40 |
component: CompatibilityMonitorRepoComponent |
|
45 |
component: CompatibilityMonitorRepoComponent, |
|
46 |
canActivate: [AuthGuardService] |
|
41 | 47 |
}, |
42 | 48 |
{ |
43 | 49 |
path: 'monitor/fullHistory/:id', |
44 |
component: CompatibilityMonitorFullHistoryRepoComponent |
|
50 |
component: CompatibilityMonitorFullHistoryRepoComponent, |
|
51 |
canActivate: [AuthGuardService] |
|
45 | 52 |
} |
46 | 53 |
] |
47 | 54 |
} |
Also available in: Unified diff
fixed redirecting to redirectUrl after login