diff --git a/README.md b/README.md index 415459d..8229f48 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # LucasWeb -This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.6. ## Development server diff --git a/src/app/app.config.ts b/src/app/app.config.ts index 6c6ef60..9068d19 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -2,7 +2,8 @@ import { ApplicationConfig } from '@angular/core'; import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; +import { provideHttpClient } from '@angular/common/http'; export const appConfig: ApplicationConfig = { - providers: [provideRouter(routes)] + providers: [provideHttpClient(),provideRouter(routes)] }; diff --git a/src/app/app.guard.ts b/src/app/app.guard.ts index a37d614..e68dc43 100644 --- a/src/app/app.guard.ts +++ b/src/app/app.guard.ts @@ -13,7 +13,7 @@ export class AuthGuard { if (this.configService.isLoggedIn()) { return true; } else { - this.router.navigate(['/LogIn']); + this.router.navigate(['/login']); return false; } } diff --git a/src/app/components/navibar/navibar.component.html b/src/app/components/navibar/navibar.component.html index cc6778d..ab6e04b 100644 --- a/src/app/components/navibar/navibar.component.html +++ b/src/app/components/navibar/navibar.component.html @@ -1,5 +1,5 @@
-