Update API URL

This commit is contained in:
jveebs 2023-04-17 12:44:01 -04:00
parent 68368d1c71
commit 048ccc4c16
5 changed files with 6 additions and 6 deletions

View file

@ -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}&currency=${currency}&category=${category}&type=${type}`, {
fetch(`https://api.bb.gabefarrell.com/w/transactions?whole=${whole}&decimal=${decimal}&currency=${currency}&category=${category}&type=${type}`, {
method: 'POST',
body: formData,
headers: {

View file

@ -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',