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

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

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

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

module.exports = router;