fix: missionary education
Deploy banu-front / deploy (push) Successful in 1m31s

This commit is contained in:
sajjadtalkhabi
2026-07-21 12:24:58 +03:30
parent 2a1f1b19d4
commit e8b1e4add6
10 changed files with 534 additions and 0 deletions
+8
View File
@@ -30,6 +30,14 @@ export const endpoints = {
// dedicated student route (returns the membership row with the nested term).
getStudentDashboard: '/student/dashboard',
getStudentTerms: '/student/my-terms',
// Missionary — passed (completed) education. List-only; same shapes as
// /student/my-terms, /courses, /sessions. Detail views reuse the shared
// /sessions/:id and the already-fetched list data (via query cache).
getMissionaryPassedTerms: '/missionary/passed-terms',
getMissionaryPassedCourses: '/missionary/passed-courses',
getMissionaryPassedSessions: '/missionary/passed-sessions',
showStudentTerm: '/student/my-terms/:id',
getStudentExamResults: '/student/exam-results',
getStudentHomeworks: '/student/homeworks',
+11
View File
@@ -0,0 +1,11 @@
import { http } from '@/services/api/http'
import { endpoints } from '@/services/api/endpoints'
export const apiGetMissionaryPassedTerms = (params) =>
http.get(endpoints.getMissionaryPassedTerms, { params })
export const apiGetMissionaryPassedCourses = (params) =>
http.get(endpoints.getMissionaryPassedCourses, { params })
export const apiGetMissionaryPassedSessions = (params) =>
http.get(endpoints.getMissionaryPassedSessions, { params })