소스 검색

semi-coma

formation 4 년 전
부모
커밋
9490ad7e85
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 3
      angular-client/src/app/components/login/login.component.ts
  2. 1 1
      angular-client/src/app/services/auth.service.ts

+ 3 - 3
angular-client/src/app/components/login/login.component.ts

@@ -73,14 +73,14 @@ export class LoginComponent implements OnInit {
    this.authService.signIn(this.formGroup.value).subscribe(
     data => {
         // this.router.navigate([this.returnUrl]);
-        console.log(data)
+        console.log(data);
         this.loading = false;
         this.router.navigate(['auth']);
     },
     err => {
         this.loading = false;
-        console.log(err.error.message)
-        this.authService.openSnackBar(err.error.message)
+        console.log(err.error.message);
+        this.authService.openSnackBar(err.error.message);
     });
     // this.router.navigate(['/']);
 

+ 1 - 1
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>;