-
-
Save tarlepp/467e1bc702a4f593a338 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find: function(req, res) { | |
| Items | |
| .find() | |
| .exec(function(err, val) { | |
| if (err) { | |
| res.send(err); | |
| } else if (val) { | |
| res.send(val); | |
| } else { | |
| res.send({}); | |
| } | |
| }); | |
| }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment