Skip to content

Commit

Permalink
fix (error) [QCMPLUS-38] - exame jsx service
Browse files Browse the repository at this point in the history
Signed-off-by: Teclit <[email protected]>
  • Loading branch information
Teclit committed Aug 22, 2024
1 parent f126243 commit a3be0e5
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions qcmplusweb/src/services/ExamService.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,5 @@ export const getAllExamSession = () => axiosInstance.get(`${EXAM_REST_API_URL}/e
export const getAllUserExamHistory = (userId) => axiosInstance.get(`${EXAM_REST_API_URL}/exam_sessions/user/${userId}`);
export const getQuestions = (quizId) => axiosInstance.get(`${EXAM_REST_API_URL}/quizzes/${quizId}/questions`);
export const getAnswers = (questionId) => axiosInstance.get(`${EXAM_REST_API_URL}/questions/${questionId}/answers`);
export const submitExamSession = (sessionData) => {
console.log( "submitExamSession sessionData");
console.log(sessionData);
return axiosInstance.post(`${EXAM_REST_API_URL}/exam_sessions`, sessionData);
}


//axiosInstance.post(`${EXAM_REST_API_URL}/exam_sessions`, sessionData);
export const submitExamSession = (sessionData) => axiosInstance.post(`${EXAM_REST_API_URL}/exam_sessions`, sessionData);
export const getExamSession = (sessionId) => axiosInstance.get(`${EXAM_REST_API_URL}/exam_sessions/${sessionId}`);

0 comments on commit a3be0e5

Please sign in to comment.