This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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 })
|
||||
Reference in New Issue
Block a user