소스 검색

test merge

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;
     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 => {
         // 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>(`/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));