add API namespace
This commit is contained in:
@@ -12,7 +12,7 @@ const Cash = (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);
|
||||
|
||||
Reference in New Issue
Block a user