diff --git a/support-portal-frontend/src/app/app.module.ts b/support-portal-frontend/src/app/app.module.ts index fe28a54..76cc5f4 100644 --- a/support-portal-frontend/src/app/app.module.ts +++ b/support-portal-frontend/src/app/app.module.ts @@ -6,6 +6,7 @@ import {HTTP_INTERCEPTORS, HttpClientModule} from "@angular/common/http"; import {AuthenticationService} from "./service/authentication.service"; import {UserService} from "./service/user.service"; import {AuthInterceptor} from "./interceptor/auth.interceptor"; +import {AuthenticationGuard} from "./guard/authentication.guard"; @NgModule({ declarations: [ @@ -15,7 +16,7 @@ import {AuthInterceptor} from "./interceptor/auth.interceptor"; BrowserModule, HttpClientModule ], - providers: [AuthenticationService, UserService, + providers: [AuthenticationGuard, AuthenticationService, UserService, {provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true} ], bootstrap: [AppComponent]