formation před 3 roky
rodič
revize
bdd4ee2f7c
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 = environment.apiUrl
 
 
   private tokenSubject: BehaviorSubject<Token>;
@@ -97,7 +97,7 @@ export class AuthService {
   // iscription get  token on login 
   signUP(data): Observable<Token> {
 
-    return this.http.post<Token>("https://api-preprod.foodgame.fr/api/auth/signup", data)
+    return this.http.post<Token>(`${this.apiUrl}/api/auth/signup`, data)
       .pipe(map(token => {
         // store jwt token in local storage 
         localStorage.setItem('token', JSON.stringify(token));