// 404 Not Found middleware
const notFound = (req, res) => {
  res.status(404).json({
    success: false,
    error: {
      message: `Route ${req.method} ${req.path} not found`,
      path: req.path,
    },
  });
};

export default notFound;
