import { Router } from 'express'; import { authenticateToken } from '@middlewares/auth.middleware'; import { getNotificationPreferences, updateNotificationPreferences } from '@controllers/userPreference.controller'; const router = Router(); // All routes require authentication router.use(authenticateToken); /** * @route GET /api/v1/user/preferences/notifications * @desc Get current user's notification preferences * @access Private (Authenticated users) */ router.get('/notifications', getNotificationPreferences); /** * @route PUT /api/v1/user/preferences/notifications * @desc Update current user's notification preferences * @access Private (Authenticated users) */ router.put('/notifications', updateNotificationPreferences); export default router;