Revision 52738
Added by Myrto Koukouli almost 6 years ago
app.module.ts | ||
---|---|---|
27 | 27 |
import {LandingComponent} from "./pages/landing/landing.component"; |
28 | 28 |
import {DashboardComponent} from "./pages/dashboard/dashboard.component"; |
29 | 29 |
import { UsagestatsService } from './services/usagestats.service'; |
30 |
import {AuthenticationInterceptor} from "./services/authentication-interceptor"; |
|
31 |
import {HTTP_INTERCEPTORS} from "@angular/common/http"; |
|
30 | 32 |
|
31 | 33 |
|
32 | 34 |
@NgModule({ |
... | ... | |
54 | 56 |
DashboardComponent |
55 | 57 |
], |
56 | 58 |
providers: [ |
57 |
// appRoutingProviders |
|
59 |
{ |
|
60 |
provide: HTTP_INTERCEPTORS, |
|
61 |
useClass: AuthenticationInterceptor, |
|
62 |
multi: true |
|
63 |
}, |
|
58 | 64 |
BrokerService, |
59 | 65 |
MonitorService, |
60 | 66 |
PiwikService, |
Also available in: Unified diff
added interceptor with routing to 403 page