mirror of
https://github.com/gabehf/BudgetBuddy.git
synced 2026-03-14 17:56:01 -07:00
Update API URL
This commit is contained in:
parent
68368d1c71
commit
048ccc4c16
5 changed files with 6 additions and 6 deletions
|
|
@ -14,7 +14,7 @@ const AddExpenseForm = (props) => {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
try {
|
try {
|
||||||
fetch('http://127.0.0.1:3030/w/budget', {
|
fetch('https://api.bb.gabefarrell.com/w/budget', {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'x-session-key' : getSessionKey(),
|
'x-session-key' : getSessionKey(),
|
||||||
|
|
@ -57,7 +57,7 @@ const AddExpenseForm = (props) => {
|
||||||
formData.append('type', type)
|
formData.append('type', type)
|
||||||
|
|
||||||
try {
|
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',
|
method: 'POST',
|
||||||
body: formData,
|
body: formData,
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ export default function CategorizedBudget() {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
async function getChartData() {
|
async function getChartData() {
|
||||||
try {
|
try {
|
||||||
fetch('http://127.0.0.1:3030/w/budget', {
|
fetch('https://api.bb.gabefarrell.com/w/budget', {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'x-session-key' : 'b36efa01-7824-4f61-a274-63131b58d8fe',
|
'x-session-key' : 'b36efa01-7824-4f61-a274-63131b58d8fe',
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ export default function Login() {
|
||||||
formData.append('password', password);
|
formData.append('password', password);
|
||||||
|
|
||||||
// Send the form data via HTTP using Fetch API
|
// 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',
|
method: 'POST',
|
||||||
body: formData,
|
body: formData,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ export default function SignUp() {
|
||||||
formData.append('password', password);
|
formData.append('password', password);
|
||||||
|
|
||||||
// Send the form data via HTTP using Fetch API
|
// 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',
|
method: 'POST',
|
||||||
body: formData,
|
body: formData,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ export function getSessionKey() {
|
||||||
|
|
||||||
export async function getName() {
|
export async function getName() {
|
||||||
try {
|
try {
|
||||||
const response = await fetch('http://127.0.0.1:3030/userinfo', {
|
const response = await fetch('https://api.bb.gabefarrell.com/userinfo', {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'x-session-key': getSessionKey(),
|
'x-session-key': getSessionKey(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue