From fbe82e672bd7b165e8492ee432a4db2b8774333b Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 9 Feb 2021 12:15:32 +0100 Subject: [PATCH] enable hydrator --- packages/dashboard/src/pages/api/hydrator.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/dashboard/src/pages/api/hydrator.js b/packages/dashboard/src/pages/api/hydrator.js index 4aac55bf..f14fab03 100644 --- a/packages/dashboard/src/pages/api/hydrator.js +++ b/packages/dashboard/src/pages/api/hydrator.js @@ -1,7 +1,9 @@ export default (req, res) => { + const data = req.body; + console.log("method", req.method); console.log("body", req.body); console.log("cookies", req.cookies); - res.json({ name: "John Doe" }); + res.json({ ...data, cookies: { ...data.cookies, foo: "bar" } }); };