Guest User

Untitled

a guest
Jul 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. router.get('/search', (req, res, next) => {
  2. Post.find({queryString: req.query.id}).exec()
  3. .then(response => {
  4. res.send(response)
  5. })
  6. .catch(err => console.log(err))
  7. })
Add Comment
Please, Sign In to add comment