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);
|
||||
|
||||
console.log(Object.keys(req));
|
||||
console.log(req);
|
||||
console.log(JSON.stringify(req));
|
||||
console.log(user);
|
||||
res.statusCode = 200;
|
||||
res.json({ name: "John Doe" });
|
||||
};
|
||||
|
|
Reference in New Issue