test middleware
This commit is contained in:
parent
3fe58df86c
commit
41790145a4
|
@ -35,7 +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(user);
|
console.log(req.user);
|
||||||
res.statusCode = 200;
|
res.statusCode = 200;
|
||||||
res.json({ name: "John Doe" });
|
res.json({ name: "John Doe" });
|
||||||
};
|
};
|
||||||
|
|
Reference in New Issue