Tell us what’s happening:
app.get(
“/now”,
function (req, res, next) {
req.time = new Date().toString();
next();
},
function (req, res) {
res.send({ time: req.time });
});
this is code or should i send the whole thing
###Your project link(s)
solution: https://98vntg-3000.csb.app
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Challenge Information:
Basic Node and Express - Chain Middleware to Create a Time Server