Revision 51793
Added by Myrto Koukouli about 5 years ago
metrics.routing.ts | ||
---|---|---|
11 | 11 |
import {MetricsUsagestatsComponent} from "./metrics-usagestats.component"; |
12 | 12 |
|
13 | 13 |
const metricsRoutes: Routes = [ |
14 |
{ |
|
15 |
path: 'getImpact', |
|
16 |
canActivate: [AuthGuardService], |
|
17 |
children: [ |
|
18 |
{ |
|
19 |
path: '', |
|
20 |
component: MetricsComponent, |
|
21 |
}, |
|
22 |
{ |
|
23 |
path: 'enable/:id', |
|
24 |
component: MetricsEnableComponent |
|
25 |
}, |
|
26 |
{ |
|
27 |
path: 'show_metrics/:id', |
|
28 |
component: MetricsShowComponent |
|
29 |
}, |
|
30 |
{ |
|
31 |
path: 'instructions/:id', |
|
32 |
component: MetricsInstructionsComponent |
|
33 |
}, |
|
34 |
{ |
|
35 |
path: 'usagestats/:id', |
|
36 |
component: MetricsUsagestatsComponent |
|
37 |
} |
|
38 |
] |
|
39 |
} |
|
14 |
{ |
|
15 |
path: '', |
|
16 |
component: MetricsComponent, |
|
17 |
}, |
|
18 |
{ |
|
19 |
path: 'enable/:id', |
|
20 |
component: MetricsEnableComponent |
|
21 |
}, |
|
22 |
{ |
|
23 |
path: 'show_metrics/:id', |
|
24 |
component: MetricsShowComponent |
|
25 |
}, |
|
26 |
{ |
|
27 |
path: 'instructions/:id', |
|
28 |
component: MetricsInstructionsComponent |
|
29 |
}, |
|
30 |
{ |
|
31 |
path: 'usagestats/:id', |
|
32 |
component: MetricsUsagestatsComponent |
|
33 |
} |
|
40 | 34 |
]; |
41 | 35 |
|
42 | 36 |
|
Also available in: Unified diff
added redirection to landing when route was not found