From 063d0805ee652663790e2a503c07573bcb75757e Mon Sep 17 00:00:00 2001 From: LuxShan Thavarasa <120371059+Luxshan2000@users.noreply.github.com> Date: Sat, 28 Oct 2023 20:20:29 +0530 Subject: [PATCH] Update AddItems.js --- frontend/src/components/AddItems.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/AddItems.js b/frontend/src/components/AddItems.js index 67e436d..d0e822f 100644 --- a/frontend/src/components/AddItems.js +++ b/frontend/src/components/AddItems.js @@ -9,7 +9,7 @@ function AddItems({setItems}) { ev.preventDefault(); try {//51.20.76.107 - const response = await axios.post("http://51.20.76.107:5000/api/add/item", { name: name }); + const response = await axios.post("http://ec2-18-61-66-218.ap-south-2.compute.amazonaws.com/api/add/item", { name: name }); setname(""); setItems((prv)=>[...prv,response.data.item]) } catch (error) {