How can I use number 2 here in this url ( http://localhost:3001/products/2) in axios request ...
const getProd = () => { axios.get(`http://localhost:3000/customer/product/${I want to take the number from the url and use it here}`) .then((result) => { setProducts(result.data); return }) }