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