Use correct post endpoint

This commit is contained in:
Thomas Wade 2018-10-26 23:02:36 +10:30
parent 05a271e019
commit 77b3111e01

View File

@ -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 = "";