test middleware

This commit is contained in:
Karol Wypchlo 2021-02-05 11:55:10 +01:00
parent 28ba0eb3d3
commit bbafcff2ae
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ function runMiddleware(req, res, fn) {
});
}
export default (req, res) => {
await runMiddleware(req, res, middleware)
export default async (req, res) => {
await runMiddleware(req, res, middleware);
console.log(Object.keys(req));
console.log(req);