From 499c54e8eb53cf49d8ddae68528eb3a8243101d2 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Wed, 5 May 2021 10:20:41 +0530 Subject: fixed broken API routes and css glitch in form --- src/components/BillingPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/BillingPage.js') diff --git a/src/components/BillingPage.js b/src/components/BillingPage.js index 73778a1..71d7c81 100644 --- a/src/components/BillingPage.js +++ b/src/components/BillingPage.js @@ -27,7 +27,7 @@ const BillingPage = () => { const [registerPersonFormVisibility, setRegisterPersonFormVisibility] = useState(false); const getRegisteredItems = () => { - axios.get(`/api/items`) + axios.get(`/api/items/get-all`) .then((res) => { getSavedItems(res.data); }) @@ -38,7 +38,7 @@ const BillingPage = () => { } const getRegisteredPeople = () => { - axios.get(`/api/people`) + axios.get(`/api/people/get-all`) .then((res) => { getSavedPeople(res.data); }) -- cgit v1.2.3