// routes/disputes.js
const express = require('express');
const router = express.Router();
const requireRole = require('../middleware/requireRole');

// Protected route - create dispute
router.post('/', requireRole(['user', 'moderator', 'admin']), (req, res) => {
  // Implementation for creating a dispute
});

// Protected route - get disputes
router.get('/', requireRole(['user', 'moderator', 'admin']), (req, res) => {
  // Implementation for getting disputes
});

// Protected route - update dispute status
router.put('/:id/status', requireRole(['moderator', 'admin']), (req, res) => {
  // Implementation for updating dispute status
});

// Protected route - resolve dispute
router.put('/:id/resolve', requireRole(['moderator', 'admin']), (req, res) => {
  // Implementation for resolving a dispute
});

module.exports = router;