1) I've created a model user.js
2) I submit the form that executes the controller register.js
3) I'am saving a user, using user.save()
4) after that I get an error that: POST http://localhost:4200/users 404 (Not Found)
I've tried to create a route called 'users', but it didn't helped, I've also put a route 'users' in the file router.js, still I get this error, can anyone tell me please what I should do to solve it?
Aucun commentaire:
Enregistrer un commentaire