mirror of
https://github.com/grocy/grocy.git
synced 2025-08-15 10:14:39 +00:00
Rework API to be more RESTful (references #139)
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
if (Grocy.EditMode === 'create')
|
||||
{
|
||||
Grocy.Api.Post('object/chores', jsonData,
|
||||
Grocy.Api.Post('objects/chores', jsonData,
|
||||
function(result)
|
||||
{
|
||||
window.location.href = U('/chores');
|
||||
@@ -21,7 +21,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
Grocy.Api.Put('object/chores/' + Grocy.EditObjectId, jsonData,
|
||||
Grocy.Api.Put('objects/chores/' + Grocy.EditObjectId, jsonData,
|
||||
function(result)
|
||||
{
|
||||
window.location.href = U('/chores');
|
||||
|
Reference in New Issue
Block a user