It’s hard to debug without the errors you are seeing or a link to a project on repl.it or similar. Post a link to your project and you’ll get better advice.
This code is using the wrong API endpoints but I have no idea if that’s all the problems it has without the rest of the project.
It appears to be working now and passes the tests, but it is generating errors in the server console since you are not returning your responses (return res.json(...); etc.)