From 77b3111e010056570e0285a293a403b72a544a82 Mon Sep 17 00:00:00 2001 From: Thomas Wade Date: Fri, 26 Oct 2018 23:02:36 +1030 Subject: [PATCH] Use correct post endpoint --- scripts/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = "";