From 962fc2e5ca44c5eee4b9a4d25211799dc1f5d1bc Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 9 Feb 2021 12:22:29 +0100 Subject: [PATCH] enable hydrator --- packages/dashboard/src/pages/api/hydrator.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/dashboard/src/pages/api/hydrator.js b/packages/dashboard/src/pages/api/hydrator.js index 30b15018..c7e52858 100644 --- a/packages/dashboard/src/pages/api/hydrator.js +++ b/packages/dashboard/src/pages/api/hydrator.js @@ -1,9 +1,7 @@ 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({ ...data, header: { ...data.header, foo: "bar" }, extra: { wtf: "bbq" } }); + res.json(req.body); };