mirror of
https://github.com/grocy/grocy.git
synced 2025-08-16 10:44:37 +00:00
Rework API to be more RESTful (references #139)
This commit is contained in:
@@ -52,7 +52,7 @@ $(document).on('click', '.quantityunit-delete-button', function (e)
|
||||
{
|
||||
if (result === true)
|
||||
{
|
||||
Grocy.Api.Delete('object/quantity_units/' + objectId,
|
||||
Grocy.Api.Delete('objects/quantity_units/' + objectId, {},
|
||||
function(result)
|
||||
{
|
||||
window.location.href = U('/quantityunits');
|
||||
|
Reference in New Issue
Block a user