nCore nCore - 1 year ago 114
AngularJS Question

mongoDB api endpoint

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'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)

submit controller with post method

$'api/users/', vm.newUser).success(function(response){


server.js'api/users/', authController.signup);

Answer Source

add '/' in your endpoint'/api/users/', authController.signup);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download