Created
May 6, 2018 02:42
-
-
Save budasuyasa/a735bd516d5a8cdee7564aa2d1d6e258 to your computer and use it in GitHub Desktop.
medium-post-simple-rest-03
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('/book/', (req, res) => { | |
book.findAll().then(book => { | |
res.json(book) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment