追記していく。
参考URL:
https://expressjs.com/
bodyを取得
app.post('/users', function (req, res) {
let body = req.body;
res.json(body);
});
JSONを返す
res.json("abc")
クエリストリングを取得
app.get('/users', function (req, res) {
let params = req.query;
res.json(params);
});