add API namespace
This commit is contained in:
@@ -16,7 +16,7 @@ const MakeMoneyMove = (props) => {
|
||||
useEffect(() => {
|
||||
const getCashForHomies = async () => {
|
||||
try {
|
||||
const cash = await axios.get(`/homies/cash`);
|
||||
const cash = await axios.get(`/api/homies/cash`);
|
||||
setHomiesCash(cash.data);
|
||||
} catch (e) {
|
||||
console.log("Error fetching", e);
|
||||
@@ -72,7 +72,7 @@ const MakeMoneyMove = (props) => {
|
||||
}
|
||||
}
|
||||
|
||||
const submitResponse = await axios.post('/money_moves', moneyMoveRequest);
|
||||
const submitResponse = await axios.post('/api/money_moves', moneyMoveRequest);
|
||||
|
||||
if (submitResponse && submitResponse.status === 200 && submitResponse.data === true) {
|
||||
M.toast({html: "Money lounde...moved"});
|
||||
|
||||
Reference in New Issue
Block a user