/**
 * User Routes
 * User configuration API endpoints
 */

import { Router } from 'express';
import { UserController } from '../controllers/user.controller';
import { authenticate } from '../middleware/auth.middleware';

const router = Router();

/**
 * @route   GET /api/user/settings
 * @desc    Get user settings
 * @access  Private
 */
router.get('/settings', authenticate, UserController.getSettings);

/**
 * @route   POST /api/user/settings
 * @desc    Save user settings
 * @access  Private
 */
router.post('/settings', authenticate, UserController.saveSettings);

/**
 * @route   DELETE /api/user/settings
 * @desc    Clear user settings
 * @access  Private
 */
router.delete('/settings', authenticate, UserController.clearSettings);

export default router;
