diff --git a/spring-petclinic-client/src/scripts/owner-form/owner-form.controller.js b/spring-petclinic-client/src/scripts/owner-form/owner-form.controller.js index 0f96710796eedd64a3bd095520a7fa6b1fcb7d6f..df6d0176488048b963085a59f804d5d904764408 100644 --- a/spring-petclinic-client/src/scripts/owner-form/owner-form.controller.js +++ b/spring-petclinic-client/src/scripts/owner-form/owner-form.controller.js @@ -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 () {