From 97bd2dc7709289022966eccef2338533ec9998b1 Mon Sep 17 00:00:00 2001 From: JuanMa Garrido Date: Mon, 29 Jun 2020 10:07:38 +0200 Subject: [PATCH] demo serverless node function --- api/get-body.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 api/get-body.js diff --git a/api/get-body.js b/api/get-body.js new file mode 100644 index 0000000..feade69 --- /dev/null +++ b/api/get-body.js @@ -0,0 +1,7 @@ +module.exports = (req, res) => { + res.json({ + body: req.body, + query: req.query, + cookies: req.cookies + }) +} \ No newline at end of file