formation před 3 roky
rodič
revize
1e71a02957
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      angular-client/src/app/services/auth.service.ts

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

@@ -17,7 +17,7 @@ import * as jwt_decode from 'jwt-decode';
 export class AuthService {
 
   //url api
-  private apiUrl = `https://api-preprod.foodgame.fr`;
+  //private apiUrl = `https://api-preprod.foodgame.fr`;
 
 
   private tokenSubject: BehaviorSubject<Token>;
@@ -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>(`https://api-preprod.foodgame.fr/api/auth/login`, credentials)
       .pipe(map(token => {
         // store jwt token in local storage 
         localStorage.setItem('token', JSON.stringify(token));