const express = require('express');
const commissionController = require('../controllers/commissionController');
const { authenticateUser } = require('../middleware/auth');

const router = express.Router();

/**
 * Commission Routes (User)
 */

/**
 * @route   GET /api/v1/commissions
 * @desc    Get my commission records
 * @access  Private (User)
 */
router.get('/', authenticateUser, commissionController.getMyCommissions);

/**
 * @route   GET /api/v1/commissions/stats
 * @desc    Get my commission statistics
 * @access  Private (User)
 */
router.get('/stats', authenticateUser, commissionController.getMyCommissionStats);

module.exports = router;
