aboutsummaryrefslogtreecommitdiffstats
path: root/src/services
diff options
context:
space:
mode:
Diffstat (limited to 'src/services')
-rw-r--r--src/services/productService.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/services/productService.js b/src/services/productService.js
new file mode 100644
index 0000000..4c0ea92
--- /dev/null
+++ b/src/services/productService.js
@@ -0,0 +1,5 @@
+import axios from 'axios';
+
+const API_URL = 'https://yourapi.com/api/products';
+
+export const fetchProduct = (barcode) => axios.get(`${API_URL}/${barcode}`);