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