From 3fe58df86c5382e1a8ea52929f40a95270759b8f Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Fri, 5 Feb 2021 11:56:58 +0100 Subject: [PATCH] test middleware --- packages/dashboard/pages/api/hello.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/dashboard/pages/api/hello.js b/packages/dashboard/pages/api/hello.js index 530ebd74..d47dc5dd 100644 --- a/packages/dashboard/pages/api/hello.js +++ b/packages/dashboard/pages/api/hello.js @@ -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" }); };