// Admin only middleware
export const adminOnly = (req, res, next) => {
  if (req.role !== "admin") {
    return res.status(403).json({ message: "Access denied. Admin only." });
  }
  next();
};

// Client only middleware
export const clientOnly = (req, res, next) => {
  if (req.role !== "client") {
    return res.status(403).json({ message: "Access denied. Client only." });
  }
  next();
};