diff --git a/matsen-tool/src/app/_services/account.service.ts b/matsen-tool/src/app/_services/account.service.ts index f70ee67..84defb6 100644 --- a/matsen-tool/src/app/_services/account.service.ts +++ b/matsen-tool/src/app/_services/account.service.ts @@ -26,7 +26,7 @@ export class AccountService { } login(email: string, password: string) { - return this.http.post(`${environment.basePath}/auth`, { email, password }) + return this.http.post(`${environment.apiUrl}/auth`, { email, password }) .pipe(map(user => { // store user details and jwt token in local storage to keep user logged in between page refreshes localStorage.setItem('user', JSON.stringify(user));