javascript - AngularJS $http.post 404 Error -


i new user angular.js, spa essence of it. however, when tried use $http.post, 404 error. here code file has 404:

(function(){   angular.module('jerri')     .controller('signupcontroller', ['$scope', '$state', '$http', function($scope, $state, $http){       $scope.createuser = function(){         console.log($scope.newuser);         $http.post('api/users/signup', $scope.newuser).success(function(response){          });       }     }]); }()); 

and error:

angular.js:11821 post http://localhost:3000/api/users/signup 404 (not found) 

now, despite ignorance, referred google several hours. got many posts here on stack overflow angularjs website, have found nothing has worked @ moment.

would mind helping me out rookie mistake? thank in advance.

tavin


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -