const { Router } = require('express'); const { list, getById, create, update, remove, setStatus } = require('../controllers/recommendationController'); const { authenticate } = require('../middleware/auth'); const router = Router(); router.get('/', authenticate, list); router.get('/:id', authenticate, getById); router.post('/', authenticate, create); router.put('/:id', authenticate, update); router.patch('/:id/status', authenticate, setStatus); router.delete('/:id', authenticate, remove); module.exports = router;