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