Created
April 25, 2021 20:24
-
-
Save WitkowskiMichau/1ec97f5b38bc9840911717b689f57191 to your computer and use it in GitHub Desktop.
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
module.exports = (app, db) => { | |
app.get('/users', (req, res) => { | |
res.json({ | |
meta: {}, | |
items: db.get('users').value() | |
}) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment