enable hydrator

This commit is contained in:
Karol Wypchlo 2021-02-09 12:15:32 +01:00
parent 93a0706ac7
commit fbe82e672b
1 changed files with 3 additions and 1 deletions

View File

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