Exercise Tracker. Test 5,6,7 failing. echo server

I am trying to understand how to handle the query params for the last three tests. The get path is: ‘api/users/:_id/logs’. Earlier, i used the params object to access the _id parameter but it isn’t working now. I may just go back and study the express section again. I’m not sure I understand the purpose of the echo server.

Hopefully, you can steer me back on path.
Your project link(s)

solution: https://replit.com/@joetags/boilerplate-project-exercisetracker

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: Exercise Tracker

Link to the challenge:

This may sounds strange, but have you tried to move that route in code before route for just '/api/users'?

Sorry. I don’t follow. Are you saying to remove ‘/:_id/logs’ and just use ‘api/users’ as the route?

Change the order of routes, right now route for /api/users is before route for /api/users/:_id/logs. Make it so /api/users one is at the end.

Ok. I’m heading into work, so I’ll try that later.

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