Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.findAll = (req, res) => {
- Category.find()
- .then(categories => {
- res.send(categories);
- }).catch(err => {
- res.status(500).send({
- message: err.message || "Something went wrong."
- });
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment