Skip to content
Snippets Groups Projects
Commit ff8c0d1c authored by Antoine Rey's avatar Antoine Rey
Browse files

Fix owners URL: api/client/owners/ instead of api/client/ownera/

parent 5b1b620b
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ angular.module('ownerForm') ...@@ -9,7 +9,7 @@ angular.module('ownerForm')
if (!ownerId) { if (!ownerId) {
self.owner = {}; self.owner = {};
} else { } else {
$http.get("api/client/ownera/" + ownerId).then(function (resp) { $http.get("api/client/owners/" + ownerId).then(function (resp) {
self.owner = resp.data; self.owner = resp.data;
}); });
} }
...@@ -18,9 +18,9 @@ angular.module('ownerForm') ...@@ -18,9 +18,9 @@ angular.module('ownerForm')
var id = self.owner.id; var id = self.owner.id;
var req; var req;
if (id) { if (id) {
req = $http.put("api/client/ownera/" + id, self.owner); req = $http.put("api/client/owners/" + id, self.owner);
} else { } else {
req = $http.post("api/client/ownera", self.owner); req = $http.post("api/client/owners", self.owner);
} }
req.then(function () { req.then(function () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment