Timestamp microservice will not pass?

I’m on the first project for API’s and Microservice projects, Timestamp Microservice. I don’t understand why it won’t pass. I’ve followed a tutorial and tried using FCC’s solution and it still didn’t work.
Your project link(s)
https://glitch.com/edit/#!/fcc-timestamp-springstep
solution: Glitch :・゚✧

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36.

Challenge: Timestamp Microservice

Link to the challenge:

The reason could be that you handle the get request at wrong route. You used ‘/api/timestamp/:date_string’. Check the user stories.

I was working on this at midnight and I added let responseObject = {}; above my code (since I forgot the most important part. It now passes all the user stories except 5 and 6. I’m still trying to get them both to work.

I checked your project again, I think your routes are still incorrect. For the current timestamp, set the route to ‘/api’, and you should change the other one to just ‘/api/:input’.

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