const express = require('express'); const router = express.Router(); const { getSections, createSection, deleteSection, updateSection } = require('../controllers/sectionController'); const { protect, admin, supervisor, staff } = require('../middleware/authMiddleware'); router.get('/', protect, staff, getSections); router.post('/', protect, supervisor, createSection); router.delete('/:id', protect, admin, deleteSection); router.put('/:id', protect, supervisor, updateSection); module.exports = router;