LoginSignup
1
0

More than 3 years have passed since last update.

Node.js: Expressの基本メモ

Last updated at Posted at 2019-04-27

追記していく。

参考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);
});
1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0