diff --git a/src/app/components/login/login.component.ts b/src/app/components/login/login.component.ts index ff69822..0c0ff7c 100644 --- a/src/app/components/login/login.component.ts +++ b/src/app/components/login/login.component.ts @@ -42,7 +42,7 @@ export class LoginComponent implements OnInit { } else { this.bs.loginUser(this.loginFG.value).subscribe( data => { - this.router.navigateByUrl("/intro"); + this.router.navigateByUrl("/home"); }, err => { this.wrongCredentials = true; }); diff --git a/src/app/services/backend/backend.service.ts b/src/app/services/backend/backend.service.ts index a5de5a7..1ccec92 100644 --- a/src/app/services/backend/backend.service.ts +++ b/src/app/services/backend/backend.service.ts @@ -20,7 +20,7 @@ export class BackendService { withCredentials: true }; - return this.http.post(host+"/api/login", {}, options); + return this.http.post(host+"/api/configurateur/login", {}, options); } isConnected():Observable { @@ -31,7 +31,7 @@ export class BackendService { }), withCredentials: true }; - return this.http.get(host+"/api/userConnected", options); + return this.http.get(host+"/api/configurateur/userConnected", options); } logoutUser():Observable { @@ -42,7 +42,7 @@ export class BackendService { }), withCredentials: true }; - return this.http.post(host+"/api/logout", {}, options); + return this.http.post(host+"/api/configurateur/logout", {}, options); } getCurrentUser():Observable { @@ -53,6 +53,6 @@ export class BackendService { }), withCredentials: true }; - return this.http.get(host+"/api/current", options); + return this.http.get(host+"/api/configurateur/current", options); } }