|
|
@@ -58,7 +58,7 @@ export class AuthService {
|
|
|
//debugger;
|
|
|
console.log("url ========",this.apiUrl);
|
|
|
|
|
|
- return this.http.post<Token>(`${this.apiUrl}/api/auth/login`, credentials)
|
|
|
+ return this.http.post<Token>(`/api/auth/login`, credentials)
|
|
|
.pipe(map(token => {
|
|
|
// store jwt token in local storage
|
|
|
localStorage.setItem('token', JSON.stringify(token));
|
|
|
@@ -83,7 +83,7 @@ export class AuthService {
|
|
|
//debugger;
|
|
|
console.log("url ========",this.apiUrl);
|
|
|
|
|
|
- return this.http.post<Token>(`${this.apiUrl}/api/auth/admin`, credentials)
|
|
|
+ return this.http.post<Token>(`/api/auth/admin`, credentials)
|
|
|
.pipe(map(token => {
|
|
|
// store jwt token in local storage
|
|
|
localStorage.setItem('token', JSON.stringify(token));
|