From c59e7bf53d87870fa29ab6a04c48933d5693a43b Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 9 Feb 2021 12:27:53 +0100 Subject: [PATCH] enable hydrator --- packages/dashboard/src/pages/api/hydrator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dashboard/src/pages/api/hydrator.js b/packages/dashboard/src/pages/api/hydrator.js index c7e52858..bf637874 100644 --- a/packages/dashboard/src/pages/api/hydrator.js +++ b/packages/dashboard/src/pages/api/hydrator.js @@ -3,5 +3,5 @@ export default (req, res) => { console.log("body", req.body); console.log("cookies", req.cookies); - res.json(req.body); + res.json({ header: req.body ? req.body.header : {}, extra: { foo: "bar" } }); };