More improvements on the REST API (references #139)

This commit is contained in:
Bernd Bestel
2019-01-21 22:13:42 +01:00
parent bfa59dd29c
commit 276bc94cc6
15 changed files with 102 additions and 85 deletions

View File

@@ -7,7 +7,7 @@
if (Grocy.EditMode === 'create')
{
Grocy.Api.Post('users/create', jsonData,
Grocy.Api.Post('users', jsonData,
function(result)
{
window.location.href = U('/users');
@@ -21,7 +21,7 @@
}
else
{
Grocy.Api.Post('users/edit/' + Grocy.EditObjectId, jsonData,
Grocy.Api.Put('users/' + Grocy.EditObjectId, jsonData,
function(result)
{
window.location.href = U('/users');