Guest User

Untitled

a guest
Dec 9th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. router.get('/:id', function (req, res) {
  2. models.user.find({
  3. where: {
  4. id: req.params.id
  5. }
  6. }).then(function (result) {
  7. if (result === null) {
  8. res.status(204);
  9. } else {
  10. res.status(200);
  11. res.json(result);
  12. }
  13. });
  14. });
Add Comment
Please, Sign In to add comment