Use correct post endpoint
This commit is contained in:
parent
05a271e019
commit
77b3111e01
@ -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 = "";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user