const express = require('express');
const router  = express.Router();
const { authMiddleware } = require('../middleware/auth');
const { getPreferences, patchPreferences, resetPreferences } = require('../controllers/preferencesController');

router.get('/',    authMiddleware, getPreferences);
router.patch('/',  authMiddleware, patchPreferences);
router.delete('/', authMiddleware, resetPreferences);

module.exports = router;
