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

@@ -43,7 +43,7 @@ const AddChip = (props) => {
}
try{
const submitResponse = await axios.post('/chips', chipRequest);
const submitResponse = await axios.post('/api/chips', chipRequest);
if (submitResponse && submitResponse.status === 200 && submitResponse.data) {
M.toast({ html: "Chipped In" });