Spaces:
Sleeping
Sleeping
Update src/app/core/services/request-manager.service.ts
Browse files
src/app/core/services/request-manager.service.ts
CHANGED
@@ -7,7 +7,8 @@ import { environment } from "src/environments/environment.prod";
|
|
7 |
providedIn: 'root'
|
8 |
})
|
9 |
export class RequestManagerService {
|
10 |
-
private apiUrl = environment.identityServerURL;
|
|
|
11 |
|
12 |
constructor(private http: HttpClient) {}
|
13 |
|
@@ -35,6 +36,7 @@ export class RequestManagerService {
|
|
35 |
public post(endpoint: string, data: any): Observable<any> {
|
36 |
const url = `${this.apiUrl}/${endpoint}`;
|
37 |
const headers = this.getHeaders();
|
|
|
38 |
return this.http.post(url, data, { headers });
|
39 |
}
|
40 |
|
|
|
7 |
providedIn: 'root'
|
8 |
})
|
9 |
export class RequestManagerService {
|
10 |
+
// private apiUrl = environment.identityServerURL;
|
11 |
+
private apiUrl = 'https://ironone-ai-labs-reggpt-back-end.hf.space/api/v1';
|
12 |
|
13 |
constructor(private http: HttpClient) {}
|
14 |
|
|
|
36 |
public post(endpoint: string, data: any): Observable<any> {
|
37 |
const url = `${this.apiUrl}/${endpoint}`;
|
38 |
const headers = this.getHeaders();
|
39 |
+
console.log('url post:', url); // To verify it's correct
|
40 |
return this.http.post(url, data, { headers });
|
41 |
}
|
42 |
|