enable hydrator

This commit is contained in:
Karol Wypchlo 2021-02-09 12:22:29 +01:00
parent 68215b7d98
commit 962fc2e5ca
1 changed files with 1 additions and 3 deletions

View File

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