Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit e08412e

Browse files
committed
use real API URL for interview endpoints
1 parent 904a330 commit e08412e

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

config/dev.js

-6
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,4 @@ module.exports = {
1313
V5: "https://api.topcoder-dev.com/v5", //"http://localhost:3030/api/v5"
1414
V3: "https://api.topcoder-dev.com/v3",
1515
},
16-
17-
/**
18-
* The interview api url is the mock server url.
19-
* This has to be replaced with the real url once the API is implemented.
20-
*/
21-
INTERVIEW_API_URL: "http://localhost:5555/",
2216
};

src/services/interviews.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ import config from "../../config";
33

44
export const getUserSettings = (userId) => {
55
return axios.get(
6-
`${config.INTERVIEW_API_URL}taas/user-meeting-settings/${userId}`
6+
`${config.API.V5}/taas/user-meeting-settings/${userId}`
77
);
88
};
99

1010
export const deleteCalendar = (userId, calendarId) => {
1111
return axios.delete(
12-
`${config.INTERVIEW_API_URL}taas/user-meeting-settings/${userId}/calendars/${calendarId}`
12+
`${config.API.V5}/taas/user-meeting-settings/${userId}/calendars/${calendarId}`
1313
);
1414
};
1515

1616
export const confirmInterview = (candidateJobId, data) => {
1717
return axios.patch(
18-
`${config.INTERVIEW_API_URL}jobCandidates/${candidateJobId}/requestInterview`,
18+
`${config.API.V5}/jobCandidates/${candidateJobId}/requestInterview`,
1919
data
2020
);
2121
};

0 commit comments

Comments
 (0)