aboutsummaryrefslogtreecommitdiffstats
path: root/src/services/productService.js
blob: 4c0ea920eefc4244255aefa2960cbbd378a047e0 (plain) (blame)
1
2
3
4
5
import axios from 'axios';

const API_URL = 'https://yourapi.com/api/products';

export const fetchProduct = (barcode) => axios.get(`${API_URL}/${barcode}`);