Created
July 8, 2017 09:20
-
-
Save Amberlamps/551a11399e207d8b0c845c491ffe69ac to your computer and use it in GitHub Desktop.
going full circle 1
This file contains 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
app.get('/users', (req, res) => { | |
const users = db.getUsersAsync((err, data) => { | |
console.log(data); | |
return data; | |
}); | |
res.send(users); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment