update
All checks were successful
Deploy to Production / deploy (push) Successful in 20s

This commit is contained in:
Ken
2026-02-27 09:38:39 +07:00
parent 9af45a7875
commit 6287a019e3
16 changed files with 2032 additions and 18 deletions

View File

@@ -33,4 +33,11 @@ router.put('/:id', subjectController.updateSubject);
// DELETE /api/subjects/:id - Delete subject
router.delete('/:id', subjectController.deleteSubject);
// ============ Nested Chapter Routes ============
// POST /api/subjects/:subjectId/chapters - Add chapter to subject
router.post('/:subjectId/chapters', subjectController.addChapterToSubject);
// DELETE /api/subjects/:subjectId/chapters/:chapterId - Remove chapter from subject
router.delete('/:subjectId/chapters/:chapterId', subjectController.removeChapterFromSubject);
module.exports = router;