Guest User

Untitled

a guest
Jan 16th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. exports.get = (req, res, next) => {
  2. Restaurant
  3. .find({})
  4. .then(data => {
  5. res.status(200).send(data);
  6. }).catch(e => {
  7. res.status(401).send(e);
  8. })
  9.  
  10. };
  11.  
  12. exports.getMenus = (req, res, next) => {
  13. Menu
  14. .find({})
  15. .then(data => {
  16. res.status(200).send(data);
  17. }).catch(e => {
  18. res.status(401).send(e);
  19. })
  20.  
  21. };
Add Comment
Please, Sign In to add comment