I'm using mongoDB to store data for my users and trying to create an api/users endpoint for the post method however everytime I post the form its giving me 404 api/users can't be found. How can I make the endpoint properly? been trying to follow a tutorial but the code just says app.post('api/db') but that's giving me 404, where's the api/ coming from?
my db collection looks like
movDB -- DB
- users (collection)
-- email, pass (collection objs)
add '/' in your endpoint