mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 13:05:49 +00:00
format codes
This commit is contained in:
parent
7c131fd4dc
commit
f22bfed274
1 changed files with 1 additions and 2 deletions
|
@ -70,8 +70,7 @@ function($scope, $http, $resource, $stateParams, $state) {
|
||||||
if ($state.current.name == 'app.owneredit') {
|
if ($state.current.name == 'app.owneredit') {
|
||||||
var restUrl = "/petclinic/owner/" + $stateParams.id;
|
var restUrl = "/petclinic/owner/" + $stateParams.id;
|
||||||
request = $http.put(restUrl, data);
|
request = $http.put(restUrl, data);
|
||||||
}
|
} else { // in case of owner creation
|
||||||
else { // in case of owner creation
|
|
||||||
var restUrl = "/petclinic/owner";
|
var restUrl = "/petclinic/owner";
|
||||||
request = $http.post(restUrl, data);
|
request = $http.post(restUrl, data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue