nCore nCore - 2 months ago 6x
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);


add '/' in your endpoint'/api/users/', authController.signup);