updated
Browse files
src/app/homepage/sign-in/sign-in.service.ts
CHANGED
|
@@ -10,6 +10,6 @@ export class SignInService {
|
|
| 10 |
constructor(private http: HttpClient) { }
|
| 11 |
|
| 12 |
signIn(payload: any): Observable<any> {
|
| 13 |
-
return this.http.post('http://127.0.0.1:
|
| 14 |
}
|
| 15 |
}
|
|
|
|
| 10 |
constructor(private http: HttpClient) { }
|
| 11 |
|
| 12 |
signIn(payload: any): Observable<any> {
|
| 13 |
+
return this.http.post('http://127.0.0.1:5000/sign-in', payload);
|
| 14 |
}
|
| 15 |
}
|
src/app/homepage/sign-up/sign-up.service.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Observable } from 'rxjs'; // Import Observable for async handling
|
|
| 6 |
providedIn: 'root'
|
| 7 |
})
|
| 8 |
export class SignUpService {
|
| 9 |
-
private apiUrl = 'http://127.0.0.1:
|
| 10 |
constructor(private http: HttpClient) { }
|
| 11 |
|
| 12 |
// Method to sign up a user
|
|
|
|
| 6 |
providedIn: 'root'
|
| 7 |
})
|
| 8 |
export class SignUpService {
|
| 9 |
+
private apiUrl = 'http://127.0.0.1:5000'; // The base URL for your Flask backend
|
| 10 |
constructor(private http: HttpClient) { }
|
| 11 |
|
| 12 |
// Method to sign up a user
|