Created
July 29, 2017 08:39
-
-
Save aofleejay/55c317dd957bc139f410f0b5ae01b693 to your computer and use it in GitHub Desktop.
Create route /books with method post
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
app.post('/books', (req, res) => { | |
books.push(req.body) | |
res.status(201).json(req.body) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment