feat: education
Deploy banu-front / deploy (push) Failing after 6s

This commit is contained in:
sajjadtalkhabi
2026-06-11 21:09:12 +03:30
parent 020a47f735
commit 4011c2f83b
18 changed files with 558 additions and 35 deletions
+8
View File
@@ -5,5 +5,13 @@ export const apiGetStudentExams = (params) => http.get(endpoints.getStudentExams
export const apiShowStudentExam = (id) => http.get(buildUrl(endpoints.showExam, { id }))
// POST /exams/:examId/start — begins (or resumes) an attempt; returns the
// attempt with startedAt + deadlineAt. Idempotent on the backend.
export const apiStartStudentExam = (id) => http.post(buildUrl(endpoints.startExam, { examId: id }))
export const apiSubmitStudentExamAttempt = (id, payload) =>
http.post(buildUrl(endpoints.submitExam, { examId: id }), payload)
// GET /student/exam-results — paginated attempts across the student's exams.
export const apiGetStudentExamResults = (params) =>
http.get(endpoints.getStudentExamResults, { params })