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

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

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

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

module.exports = router;