test middleware
This commit is contained in:
parent
bbafcff2ae
commit
3fe58df86c
|
@ -35,8 +35,7 @@ export default async (req, res) => {
|
||||||
await runMiddleware(req, res, middleware);
|
await runMiddleware(req, res, middleware);
|
||||||
|
|
||||||
console.log(Object.keys(req));
|
console.log(Object.keys(req));
|
||||||
console.log(req);
|
console.log(user);
|
||||||
console.log(JSON.stringify(req));
|
|
||||||
res.statusCode = 200;
|
res.statusCode = 200;
|
||||||
res.json({ name: "John Doe" });
|
res.json({ name: "John Doe" });
|
||||||
};
|
};
|
||||||
|
|
Reference in New Issue