Express.js challenge

  • I chained middleware in a single app.get() call as required.
  • When I visit /now, I get:
{"time":"Sat Jul 06 2025 10:45:12 GMT+0000 (Coordinated Universal Time)"}
  • Test 1 passes:
Passed: The /now endpoint should have mounted middleware
Failed: The /now endpoint should return the current time.
  • I restarted Replit, tried different browsers, incognito, and resubmitted.
(req, res) => {
    res.json({ time: req.time });
}

Try an implicit return without the curly braces.