Do you see the letters “timestamp” in the route that is being tested? Can we agree that “/api/timestamp/:date_string” and “/api/:date_string” are two different routes?
Yes, i can see that
The first route is to get the Right ‘now’ date
Next is to get the params, used Int to pass the new condition
then, i give my response as json.
The last was to pass in a value with a condition.
I noticed when i test mine it works but returns an err in my console
read below;
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at ServerResponse.setHeader (_http_outgoing.js:530:11)
at ServerResponse.header (/home/runner/boilerplate-project-timestamp-1/node_modules/express/lib/response.js:776:10)