test middleware
This commit is contained in:
parent
28ba0eb3d3
commit
bbafcff2ae
|
@ -31,8 +31,8 @@ function runMiddleware(req, res, fn) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export default (req, res) => {
|
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(req);
|
console.log(req);
|
||||||
|
|
Reference in New Issue