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" } }); };