diff --git a/templates/logs.html b/templates/logs.html index 4a6f727..0e330d2 100644 --- a/templates/logs.html +++ b/templates/logs.html @@ -92,7 +92,11 @@ $.ajax({ url: '/barcode', method: 'POST', - data: JSON.stringify({ barcode: barcode }), + data: JSON.stringify({ + data: { + data: barcode + } + }), contentType: 'application/json', success: function(response) { alert('Barcode has been added to queue');