Revision 51793
Added by Myrto Koukouli over 6 years ago
app.routing.ts | ||
---|---|---|
4 | 4 |
import {LandingComponent} from "./pages/landing/landing.component"; |
5 | 5 |
import {DashboardComponent} from "./pages/dashboard/dashboard.component"; |
6 | 6 |
import {AuthGuardService} from "./services/auth-guard.service"; |
7 |
import {MetricsModule} from "./pages/metrics/metrics.module"; |
|
7 | 8 |
|
8 | 9 |
const appRoutes: Routes = [ |
9 | 10 |
{ |
... | ... | |
19 | 20 |
path: 'dashboard', |
20 | 21 |
component: DashboardComponent, |
21 | 22 |
canActivate: [AuthGuardService] |
23 |
}, |
|
24 |
{ |
|
25 |
path: 'sources', |
|
26 |
loadChildren: './pages/sources/sources.module#SourcesModule', |
|
27 |
canActivate: [AuthGuardService] |
|
28 |
}, |
|
29 |
{ |
|
30 |
path: 'compatibility', |
|
31 |
loadChildren: './pages/compatibility/compatibility.module#CompatibilityModule', |
|
32 |
canActivate: [AuthGuardService] |
|
33 |
}, |
|
34 |
{ |
|
35 |
path: 'content', |
|
36 |
loadChildren: './pages/content/content.module#ContentModule', |
|
37 |
canActivate: [AuthGuardService] |
|
38 |
}, |
|
39 |
{ |
|
40 |
path: 'getImpact', |
|
41 |
loadChildren: './pages/metrics/metrics.module#MetricsModule', |
|
42 |
canActivate: [AuthGuardService] |
|
43 |
}, |
|
44 |
{ |
|
45 |
path: 'admin', |
|
46 |
loadChildren: './pages/adminPg/adminPg.module#AdminPgModule', |
|
47 |
canActivate: [AuthGuardService] |
|
48 |
}, |
|
49 |
{ |
|
50 |
path: '**', |
|
51 |
redirectTo: '/landing' |
|
22 | 52 |
} |
23 | 53 |
]; |
24 | 54 |
|
Also available in: Unified diff
added redirection to landing when route was not found