Tell us what’s happening:
I tried to do every test case and I dont see anything wrong in my code pls help me.
###Your project link(s)
solution: https://aea515ab-2e02-41c2-a33c-226b492a32bc-00-35i4n5z2ir6qn.pike.replit.dev
My code:
app.get(“/now”, function (req, res, next) {
req.time = new Date().toString();
next();
},
function (req, res) {
res.json({ time: req.time });
}
);
2. The /now endpoint should return the current time.
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Challenge Information:
Basic Node and Express - Chain Middleware to Create a Time Server