add API namespace

This commit is contained in:
Bilal
2020-09-04 08:44:06 +03:00
parent 47935d9eda
commit 5ac94d7274
5 changed files with 17 additions and 15 deletions

View File

@@ -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);