From 83a230ce073171f4336c9c78fd9c227d393d9ec8 Mon Sep 17 00:00:00 2001 From: Andrew Chen Date: Mon, 6 May 2024 22:21:51 -0700 Subject: [PATCH] change localhost:3000 to backendURL --- frontend/src/API/ShoutoutsAPI.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/API/ShoutoutsAPI.ts b/frontend/src/API/ShoutoutsAPI.ts index 80a48c5b..65dad160 100644 --- a/frontend/src/API/ShoutoutsAPI.ts +++ b/frontend/src/API/ShoutoutsAPI.ts @@ -24,11 +24,11 @@ export default class ShoutoutsAPI { } public static createCoffeeChat(coffeeChat: CoffeeChat): Promise { - return APIWrapper.post(`http://localhost:3000/coffee-chat`, coffeeChat).then((res) => res.data); + return APIWrapper.post(`${backendURL}/coffee-chat`, coffeeChat).then((res) => res.data); } public static getAllCoffeeChats(): Promise { - const coffeeChatProm = APIWrapper.get(`http://localhost:3000/coffee-chat`).then( + const coffeeChatProm = APIWrapper.get(`${backendURL}/coffee-chat`).then( (res) => res.data ); return coffeeChatProm.then((val) => {