Add API call to remove an item from the shopping list by productid

This adds an API call, so a shopping list item can easily be removed

Please note: This is UNTESTED, as I was unable to run the current grocy master commit on my server.
This commit is contained in:
Forceu
2019-08-04 20:31:47 +02:00
committed by GitHub
parent 3dbce7547f
commit 1a23eaabf1
4 changed files with 113 additions and 0 deletions

View File

@@ -167,6 +167,7 @@ $app->group('/api', function()
{
$this->post('/stock/shoppinglist/add-missing-products', '\Grocy\Controllers\StockApiController:AddMissingProductsToShoppingList');
$this->post('/stock/shoppinglist/clear', '\Grocy\Controllers\StockApiController:ClearShoppingList');
$this->post('/stock/shoppinglist/remove-from-list', '\Grocy\Controllers\StockApiController:RemoveFromShoppingList');
}
// Recipes