enable hydrator
This commit is contained in:
parent
68215b7d98
commit
962fc2e5ca
|
@ -1,9 +1,7 @@
|
||||||
export default (req, res) => {
|
export default (req, res) => {
|
||||||
const data = req.body;
|
|
||||||
|
|
||||||
console.log("method", req.method);
|
console.log("method", req.method);
|
||||||
console.log("body", req.body);
|
console.log("body", req.body);
|
||||||
console.log("cookies", req.cookies);
|
console.log("cookies", req.cookies);
|
||||||
|
|
||||||
res.json({ ...data, header: { ...data.header, foo: "bar" }, extra: { wtf: "bbq" } });
|
res.json(req.body);
|
||||||
};
|
};
|
||||||
|
|
Reference in New Issue