update App.js
This commit is contained in:
parent
45d9974349
commit
2aae571780
|
|
@ -6,7 +6,7 @@ const App = () => {
|
|||
|
||||
const getProducts = async () => {
|
||||
try {
|
||||
const res = await axios.get("http://127.0.0.1:8000");
|
||||
const res = await axios.get("http://172.16.2.99/api/products");
|
||||
|
||||
setAllProducts(res.data);
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue