Back End Development and APIs Projects - Timestamp Microservice

Tell us what’s happening:

I’m working on the Timestamp Microservice project and all tests pass except test #7 and #8. The route /api works normally, but FCC calls /api/ with a trailing slash. Express treats these as different routes, so the “empty date parameter” test fails. I need help making /api and /api/ return the current timestamp correctly.

Github Link : GitHub - mahenoorsalat/boilerplate-project-timestamp: A boilerplate for a freeCodeCamp project.

Live Link : https://boilerplate-project-timestamp-two-mu.vercel.app/

###Your project link(s)

solution: https://boilerplate-project-timestamp-two-mu.vercel.app

githubLink: GitHub - mahenoorsalat/boilerplate-project-timestamp: A boilerplate for a freeCodeCamp project.

Your browser information:

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

Challenge Information:

Back End Development and APIs Projects - Timestamp Microservice