@@ -20,12 +20,27 @@ angular.module("noteWrangler")
});
},
- create: function (note) {
+ find: function (id) {
return $http({
- method: "PUT",
+ method: "GET",
+ url: "/notes/" + id.toString(),
+ });
+ },
+
+ create: function (noteObj) {
+ return $http({
+ method: "POST",
url: "/notes",
- data: note,
+ data: noteObj,
+ update: function (nodeObj) {
+ method: "PUT",
+ url: "/notes",
+ data: nodeObj,
+ })
}
}]);