Chain Middleware to create a time server challenge

app.get('/now',function(req, res, next) {
  req.time = new Date().toString();
  next();
}, function(req, res) {
  res.json({ time: req.time });
});

“The /now endpoint should have mounted middleware” what I’m doing about it ??

someone to help me???

Your code passes for me, do you have something else in your file that could mess with the tests?

ready, we’ve solved!!!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.