From 4b94151fac0766ffc35641bc3759998aa91a42dc Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 9 Feb 2021 12:32:43 +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 bf637874..305b7233 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({ header: req.body ? req.body.header : {}, extra: { foo: "bar" } }); + res.status(200).json({ name: "John Doe" }); };