📅  最后修改于: 2022-03-11 15:01:47.695000             🧑  作者: Mango
app.route('/book')
.get(function (req, res) {
res.send('Get a random book')
})
.post(function (req, res) {
res.send('Add a book')
})
.put(function (req, res) {
res.send('Update the book')
})