From ff8c0d1c4cbe5653dc77f63440c0b83683a86648 Mon Sep 17 00:00:00 2001 From: Antoine Rey <antoine.rey@gmail.com> Date: Mon, 14 Nov 2016 18:29:20 +0100 Subject: [PATCH] Fix owners URL: api/client/owners/ instead of api/client/ownera/ --- .../src/scripts/owner-form/owner-form.controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 0f967107..df6d0176 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 () { -- GitLab