test middleware

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

View File

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