@@ -28,6 +28,7 @@ export const endpoints = {
|
||||
// (/courses, /sessions/:id, /exams/:id, /exams/:id/submit) — the backend
|
||||
// infers role from the auth token and scopes the response. Terms have a
|
||||
// dedicated student route (returns the membership row with the nested term).
|
||||
getStudentDashboard: '/student/dashboard',
|
||||
getStudentTerms: '/student/my-terms',
|
||||
showStudentTerm: '/student/my-terms/:id',
|
||||
getStudentExamResults: '/student/exam-results',
|
||||
@@ -46,6 +47,12 @@ export const endpoints = {
|
||||
getStudentCertificates: '/student/certificates',
|
||||
downloadStudentCertificate: '/student/certificates/:id/download',
|
||||
|
||||
// ─── Per-role aggregated dashboards ────────────────────────────────────────
|
||||
// Each requires the matching role's token; backend scopes the payload.
|
||||
getAdminDashboard: '/admin/dashboard',
|
||||
getCounselorDashboard: '/counselor/dashboard',
|
||||
getMissionaryDashboard: '/missionary/dashboard',
|
||||
|
||||
// ─── Admin: users (out of scope of the Terms/Courses backend doc) ──────────
|
||||
getPendingStudents: '/admin/pending-students',
|
||||
showPendingStudent: '/admin/pending-students/:id',
|
||||
|
||||
Reference in New Issue
Block a user