MongoDB POST ISSUE

Here, I am trying to post to the user database. I am using the saveUser API on the registration page. I have also provided images of the server and error. I have been stuck here for the past few hours. Can anyone tell me what the issue might be?
No description
No description
No description
No description
3 Replies
Hashi
Hashi5mo ago
I don't know much about the stack of technologies you are using, but my guess is that you have registered '/users' to be PUT Method, but from the front-end you are using POST Method
glutonium
glutonium5mo ago
ye u r correct
ἔρως
ἔρως5mo ago
yes, on screenshot 3, it says app.put you're also just straight up saving the password in plaintext, from what the screenshots show that is a good way to get in big trouble you have to hash the password using a battle-tested scheme
Want results from more Discord servers?
Add your server