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', categoryController.updateCategory);
// DELETE /api/categories/:id - Delete category
router.delete('/:id', categoryController.deleteCategory);
// ============ Nested Subject Routes ============
// POST /api/categories/:categoryId/subjects - Add subject to category
router.post('/:categoryId/subjects', categoryController.addSubjectToCategory);
// DELETE /api/categories/:categoryId/subjects/:subjectId - Remove subject from category
router.delete('/:categoryId/subjects/:subjectId', categoryController.removeSubjectFromCategory);
module.exports = router;