From 512fe610d168e242575af9eb11418e9f03ef8c7a Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Fri, 27 Jul 2018 23:04:26 -0700 Subject: [PATCH] userId fix attempt --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 4ad474a..831f326 100644 --- a/app.js +++ b/app.js @@ -48,7 +48,7 @@ app.get('/userid', function (req, res) { currUserId = result + 1; }); - res.json(currUserId); + res.json({userId : currUserId}); });