Skip to content

Commit

Permalink
change localhost:3000 to backendURL
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew032011 committed May 7, 2024
1 parent d7180f3 commit 83a230c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/API/ShoutoutsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export default class ShoutoutsAPI {
}

public static createCoffeeChat(coffeeChat: CoffeeChat): Promise<CoffeeChat> {
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<CoffeeChat[]> {
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) => {
Expand Down

0 comments on commit 83a230c

Please sign in to comment.