diff --git a/src/components/AddExpenseForm.js b/src/components/AddExpenseForm.js index 5ff9a44..760f27d 100644 --- a/src/components/AddExpenseForm.js +++ b/src/components/AddExpenseForm.js @@ -14,7 +14,7 @@ const AddExpenseForm = (props) => { useEffect(() => { try { - fetch('http://127.0.0.1:3030/w/budget', { + fetch('https://api.bb.gabefarrell.com/w/budget', { method: 'GET', headers: { 'x-session-key' : getSessionKey(), @@ -57,7 +57,7 @@ const AddExpenseForm = (props) => { formData.append('type', type) try { - fetch(`http://127.0.0.1:3030/w/transactions?whole=${whole}&decimal=${decimal}¤cy=${currency}&category=${category}&type=${type}`, { + fetch(`https://api.bb.gabefarrell.com/w/transactions?whole=${whole}&decimal=${decimal}¤cy=${currency}&category=${category}&type=${type}`, { method: 'POST', body: formData, headers: { diff --git a/src/components/CategorizedBudget.js b/src/components/CategorizedBudget.js index 842bba4..09f7a2a 100644 --- a/src/components/CategorizedBudget.js +++ b/src/components/CategorizedBudget.js @@ -13,7 +13,7 @@ export default function CategorizedBudget() { useEffect(() => { async function getChartData() { try { - fetch('http://127.0.0.1:3030/w/budget', { + fetch('https://api.bb.gabefarrell.com/w/budget', { method: 'GET', headers: { 'x-session-key' : 'b36efa01-7824-4f61-a274-63131b58d8fe', diff --git a/src/pages/Login.jsx b/src/pages/Login.jsx index 944ba38..cbf6739 100644 --- a/src/pages/Login.jsx +++ b/src/pages/Login.jsx @@ -15,7 +15,7 @@ export default function Login() { formData.append('password', password); // Send the form data via HTTP using Fetch API - fetch(`http://127.0.0.1:3030/auth/login?email=${email}&password=${password}`, { + fetch(`https://api.bb.gabefarrell.com/auth/login?email=${email}&password=${password}`, { method: 'POST', body: formData, }) diff --git a/src/pages/Signup.jsx b/src/pages/Signup.jsx index 6e2ceba..6260c1d 100644 --- a/src/pages/Signup.jsx +++ b/src/pages/Signup.jsx @@ -24,7 +24,7 @@ export default function SignUp() { formData.append('password', password); // Send the form data via HTTP using Fetch API - fetch(`http://127.0.0.1:3030/auth/createaccount?name=${name}&email=${email}&password=${password}`, { + fetch(`https://api.bb.gabefarrell.com/auth/createaccount?name=${name}&email=${email}&password=${password}`, { method: 'POST', body: formData, }) diff --git a/src/utils/utils.js b/src/utils/utils.js index fddc0c1..d79b90f 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -24,7 +24,7 @@ export function getSessionKey() { export async function getName() { try { - const response = await fetch('http://127.0.0.1:3030/userinfo', { + const response = await fetch('https://api.bb.gabefarrell.com/userinfo', { method: 'GET', headers: { 'x-session-key': getSessionKey(),