Added route to handle barcode and retrieve data