diff --git a/Funds/Costs.js b/Funds/Costs.js index 7478ff0..5ffadb0 100644 --- a/Funds/Costs.js +++ b/Funds/Costs.js @@ -73,7 +73,7 @@ export default function Costs() { const getData = () => { setIsLoading(true) - let URL = 'http://127.0.0.1:8000/costs' + let URL = 'https://127.0.0.1:8000/costs' fetch(URL, { headers: { 'Token': token @@ -94,7 +94,7 @@ export default function Costs() { }) } - fetch('http://127.0.0.1:8000/costs/'+id, requestOptions).then((res) => { + fetch('https://127.0.0.1:8000/costs/'+id, requestOptions).then((res) => { return res.json(); }).then((res) => { getData() @@ -118,7 +118,7 @@ export default function Costs() { }) } if (currentAmount !== '') { - fetch('http://127.0.0.1:8000/costs', requestOptions).then((res) => { + fetch('https://127.0.0.1:8000/costs', requestOptions).then((res) => { return res.json(); }).then((res) => { getData() diff --git a/Funds/Earnings.js b/Funds/Earnings.js index 5d47c7e..e0e07b3 100644 --- a/Funds/Earnings.js +++ b/Funds/Earnings.js @@ -73,7 +73,7 @@ export default function Earnings() { const getData = () => { setIsLoading(true) - let URL = 'http://127.0.0.1:8000/earnings' + let URL = 'https://127.0.0.1:8000/earnings' fetch(URL, { headers: { 'Token': token @@ -94,7 +94,7 @@ export default function Earnings() { }) } - fetch('http://127.0.0.1:8000/earnings/'+id, requestOptions).then((res) => { + fetch('https://127.0.0.1:8000/earnings/'+id, requestOptions).then((res) => { return res.json(); }).then((res) => { getData() @@ -118,7 +118,7 @@ export default function Earnings() { }) } if (currentAmount !== '') { - fetch('http://127.0.0.1:8000/earnings', requestOptions).then((res) => { + fetch('https://127.0.0.1:8000/earnings', requestOptions).then((res) => { return res.json(); }).then((res) => { getData() diff --git a/Funds/Login.js b/Funds/Login.js index e2bebb8..198dcbb 100644 --- a/Funds/Login.js +++ b/Funds/Login.js @@ -34,7 +34,7 @@ export default function Earnings() { }) } - fetch('http://127.0.0.1:8000/login', requestOptions).then((res) => { + fetch('https://127.0.0.1:8000/login', requestOptions).then((res) => { return res.json() }).then((res) => { if (res !== '' && res !== 'error') {