sauceCtrl_getAllSauces

PHOTO EMBED

Wed Sep 08 2021 16:23:41 GMT+0000 (UTC)

Saved by @devdave

exports.getAllSauces = (req, res, next) => {
  Sauce.find()
    .then((sauces) => res.status(200).json(sauces))
    .catch((error) => res.status(400).json({ error }));
};
content_copyCOPY