[Solved] Can't pass the 'Chain Middleware to Create a Time Server' excercise

I’ve tried this many times today without avail…

I’m getting fails on both tests, i.e.
The /now endpoint should have mounted middleware
The /now endpoint should return a time that is +/- 20 secs from now

  • When I visit my ‘/now’ route, I see a timestamp in the response.
  • I’ve tried with the Date().toString() and have also tried manipulating the result to my current timezone (Adelaide/Australia).

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/78.0.3904.108 Chrome/78.0.3904.108 Safari/537.36.

Challenge: Chain Middleware to Create a Time Server

Link to the challenge: