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')
if (!ownerId) {
self.owner = {};
} else {
$http.get("api/client/ownera/" + ownerId).then(function (resp) {
$http.get("api/client/owners/" + ownerId).then(function (resp) {
self.owner = resp.data;
});
}
......@@ -18,9 +18,9 @@ angular.module('ownerForm')
var id = self.owner.id;
var req;
if (id) {
req = $http.put("api/client/ownera/" + id, self.owner);
req = $http.put("api/client/owners/" + id, self.owner);
} else {
req = $http.post("api/client/ownera", self.owner);
req = $http.post("api/client/owners", self.owner);
}
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