Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.get = (req, res, next) => {
- Restaurant
- .find({})
- .then(data => {
- res.status(200).send(data);
- }).catch(e => {
- res.status(401).send(e);
- })
- };
- exports.getMenus = (req, res, next) => {
- Menu
- .find({})
- .then(data => {
- res.status(200).send(data);
- }).catch(e => {
- res.status(401).send(e);
- })
- };
Add Comment
Please, Sign In to add comment