- 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)"}
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.
system
Closed
3
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.