Skip to content

Instantly share code, notes, and snippets.

@Amberlamps
Created July 8, 2017 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Amberlamps/551a11399e207d8b0c845c491ffe69ac to your computer and use it in GitHub Desktop.
Save Amberlamps/551a11399e207d8b0c845c491ffe69ac to your computer and use it in GitHub Desktop.
going full circle 1
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