Basic Node and Express - Chain Middleware to Create a Time Server

The test is not passing.

I think the solution is correct (cross-checked the hint). But “The /now endpoint should have mounted middleware” is giving an error.

  • I have tried to change the system time to match the server time, it is the same.

Is there any other solution to try?

Your project link(s)

solution: boilerplate-express-4 - Nix (beta) Repl - Replit

Here is the example from the challenge:

app.get('/user', function(req, res, next) {
    req.user = getTheUserSync();  // Hypothetical synchronous operation
}, function(req, res) {

Are you following it?

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