Which url should i submit

Tell us what’s happening:

Your project link(s)

solution: https://boilerplate-project-exercisetracker-3.kiranprabhakara.repl.co/api/exercise/add

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.72 Safari/537.36.

Challenge: Exercise Tracker

Link to the challenge:

Hi there,
You need to submit both GitHub and repl.it links

not submit the api endpoint, just the link to the project

it’s showing the same test cases are not passsed …my code is working ,I’m able to send value to my mongo atlas …still it is not working

Hello there,

The challenge recently changed. As such you have the wrong endpoints:

app.post('/api/exercise/new-user',

You can POST to /api/users

Hope this clarifies

get and post can be done with same endpoints??

Yes, but what I am saying is you need to remove all mention of /exercise within all endpoints.

That is:

  • /api/exercise/new-user should become /api/new-user
  • And similar for all of your endpoints

Hope this clarifies

still it’s not working test cases failed
should I also change in html file

The tests do not use the HTML file, but, if you want to use it for testing, then you would need to.


When I look at your code, I still see:

app.post('/api/exercise/new-user',

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