Jin

assignment01 updated

...@@ -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) {
......