Point to new server for test
This commit is contained in:
5
API.js
5
API.js
@@ -1,4 +1,4 @@
|
||||
const baseUrl = "https://api.emmint.com";
|
||||
const baseUrl = "https://emiapi.reynafamily.com";
|
||||
//const baseUrl = "http://localhost:3000";
|
||||
|
||||
let getCall = async (path = "", params = {}) => {
|
||||
@@ -15,6 +15,7 @@ let getCall = async (path = "", params = {}) => {
|
||||
}
|
||||
}).then(response => response.json()).catch((error) => {
|
||||
console.error(error);
|
||||
console.trace();
|
||||
})
|
||||
}
|
||||
|
||||
@@ -32,6 +33,7 @@ let deleteCall = async (path = "", params = {}) => {
|
||||
}
|
||||
}).then(response => response.json()).catch((error) => {
|
||||
console.error(error);
|
||||
console.trace();
|
||||
})
|
||||
}
|
||||
|
||||
@@ -46,6 +48,7 @@ let postCall = async (path, params) => {
|
||||
}
|
||||
}).then(response => response.json()).catch((error) => {
|
||||
console.error(error);
|
||||
console.trace();
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user