Skip to content

Commit 4ef218f

Browse files
committed
fix: update live API URL to the correct endpoint
1 parent f9335e3 commit 4ef218f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/app/service/config/config.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class ConfigService {
3232
/**
3333
* The production (live) API base URL.
3434
*
35-
* Example: `https://exwiseapi.onrender.com`
35+
* Example: `https://coders813-exwiseapi.hf.space`
3636
*/
3737
private readonly liveAPIUrl: string = environment.liveAPIUrl;
3838

@@ -53,10 +53,10 @@ export class ConfigService {
5353
* Returns the appropriate API base URL depending on the environment.
5454
*
5555
* - `"local"` → `http://localhost:8000`
56-
* - `"live"` → `https://exwiseapi.onrender.com`
56+
* - `"live"` → `https://coders813-exwiseapi.hf.space`
5757
* - Any other value → Determines based on current window location.
5858
* - If the URL contains `"localhost"`, returns `http://localhost:8000`.
59-
* - If the URL contains `"exwise"`, returns `https://exwiseapi.onrender.com`.
59+
* - If the URL contains `"exwise"`, returns `https://coders813-exwiseapi.hf.space`.
6060
* - Defaults to `http://localhost:8000` if none of the above conditions are met.
6161
* @returns {string} The API base URL for the current environment.
6262
*/

src/environments/environments.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ export const environment = {
3939
/**
4040
* The production (live) API base URL.
4141
*
42-
* Example: `https://exwiseapi.onrender.com`
42+
* Example: `https://coders813-exwiseapi.hf.space`
4343
*/
44-
liveAPIUrl: "https://exwiseapi.onrender.com",
44+
liveAPIUrl: "https://coders813-exwiseapi.hf.space",
4545

4646
/**
4747
* The local development API base URL.

0 commit comments

Comments
 (0)