diff --git a/scripts/app.js b/scripts/app.js index 63da937..fce28bc 100644 --- a/scripts/app.js +++ b/scripts/app.js @@ -42,7 +42,7 @@ app.controller("create", ["$scope", "$http", }; // POST it to the server - $http.post("/post", post); + $http.post("/posts", post); // Clear the fields $scope.title = "";