From 8be16169a0ba22dd8b4bc9cc543b2b9a292133bf Mon Sep 17 00:00:00 2001 From: beetle442002 Date: Sun, 8 Dec 2019 00:43:55 -0600 Subject: [PATCH] Changed line 173 to /stock/barcodes/external-lookup/{barcode} fixes grocy/grocy#456 --- routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes.php b/routes.php index 1fc50a7a..00efaccb 100644 --- a/routes.php +++ b/routes.php @@ -173,7 +173,7 @@ $app->group('/api', function() $this->post('/stock/products/by-barcode/{barcode}/open', '\Grocy\Controllers\StockApiController:OpenProductByBarcode'); $this->get('/stock/bookings/{bookingId}', '\Grocy\Controllers\StockApiController:StockBooking'); $this->post('/stock/bookings/{bookingId}/undo', '\Grocy\Controllers\StockApiController:UndoBooking'); - $this->get('/stock/barcodes/external-lookup', '\Grocy\Controllers\StockApiController:ExternalBarcodeLookup'); + $this->get('/stock/barcodes/external-lookup{barcode}', '\Grocy\Controllers\StockApiController:ExternalBarcodeLookup'); } // Shopping list