enable hydrator
This commit is contained in:
parent
93a0706ac7
commit
fbe82e672b
|
@ -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" } });
|
||||
};
|
||||
|
|
Reference in New Issue