Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -17,7 +17,7 @@ app.get('/book/:bookId', function (req, res) { | ... | @@ -17,7 +17,7 @@ app.get('/book/:bookId', function (req, res) { |
17 | app.post('/book', function (req, res) { | 17 | app.post('/book', function (req, res) { |
18 | // Create book information | 18 | // Create book information |
19 | books[req.body.id] = [req.body.id, req.body.name, req.body.price, req.body.author]; | 19 | books[req.body.id] = [req.body.id, req.body.name, req.body.price, req.body.author]; |
20 | - | 20 | + res.send(books[req.body.id]); |
21 | }) | 21 | }) |
22 | 22 | ||
23 | app.put('/book/:bookId', function (req, res) { | 23 | app.put('/book/:bookId', function (req, res) { | ... | ... |
-
Please register or login to post a comment