Skip to content
Snippets Groups Projects
Commit f22bfed2 authored by Dapeng's avatar Dapeng
Browse files

format codes

parent 7c131fd4
No related branches found
No related tags found
No related merge requests found
......@@ -70,8 +70,7 @@ function($scope, $http, $resource, $stateParams, $state) {
if ($state.current.name == 'app.owneredit') {
var restUrl = "/petclinic/owner/" + $stateParams.id;
request = $http.put(restUrl, data);
}
else { // in case of owner creation
} else { // in case of owner creation
var restUrl = "/petclinic/owner";
request = $http.post(restUrl, data);
}
......
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