formation 3 年 前
コミット
42f7c9a4c8
1 ファイル変更2 行追加2 行削除
  1. 2 2
      angular-client/src/app/services/auth.service.ts

+ 2 - 2
angular-client/src/app/services/auth.service.ts

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