test middleware

This commit is contained in:
Karol Wypchlo 2021-02-05 11:58:20 +01:00
parent 3fe58df86c
commit 41790145a4
1 changed files with 1 additions and 1 deletions

View File

@ -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" });
}; };