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

@@ -25,4 +25,11 @@ router.put('/:id', chapterController.updateChapter);
// Delete chapter
router.delete('/:id', chapterController.deleteChapter);
// ============ Nested Lesson Routes ============
// POST /api/chapters/:chapterId/lessons - Add lesson to chapter
router.post('/:chapterId/lessons', chapterController.addLessonToChapter);
// DELETE /api/chapters/:chapterId/lessons/:lessonId - Remove lesson from chapter
router.delete('/:chapterId/lessons/:lessonId', chapterController.removeLessonFromChapter);
module.exports = router;