Revision 52738
Added by Myrto Koukouli over 5 years ago
app.routing.ts | ||
---|---|---|
5 | 5 |
import {DashboardComponent} from "./pages/dashboard/dashboard.component"; |
6 | 6 |
import {AuthGuardService} from "./services/auth-guard.service"; |
7 | 7 |
import {MetricsModule} from "./pages/metrics/metrics.module"; |
8 |
import {ForbiddenPageComponent} from "./shared/reusablecomponents/403-forbidden-page.component"; |
|
8 | 9 |
|
9 | 10 |
const appRoutes: Routes = [ |
10 | 11 |
{ |
... | ... | |
48 | 49 |
canLoad: [AuthGuardService] |
49 | 50 |
}, |
50 | 51 |
{ |
52 |
path: '403-forbidden', |
|
53 |
component: ForbiddenPageComponent |
|
54 |
}, |
|
55 |
{ |
|
51 | 56 |
path: '**', |
52 | 57 |
redirectTo: '/landing' |
53 | 58 |
} |
Also available in: Unified diff
added interceptor with routing to 403 page