Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- router.get('/:id', function (req, res) {
- models.user.find({
- where: {
- id: req.params.id
- }
- }).then(function (result) {
- if (result === null) {
- res.status(204);
- } else {
- res.status(200);
- res.json(result);
- }
- });
- });
Add Comment
Please, Sign In to add comment