Cannot GET /api/users

Hi, when i seeded the vidly database in mongodb there was no users table. I added a user using postman and the table appeared with one user. But, when i navigate to localhost:3900/api/users i get the message “Cannot GET /api/users”
Consequently, my register users button does not add new users.
What am i missing?
Thanks
Matt

This helped

2 Likes

But did not solve it entirely. I can now get the users when i navigate to localhost:3900/api/users but I still cannot register a new user through the registerForm.jsx

Ok, finally got it working after installing bcryptjs

1 Like