Point to new server for test

This commit is contained in:
Adolfo Reyna
2025-02-10 21:44:54 -05:00
parent fce958fbfc
commit 8f62e4b953

5
API.js
View File

@@ -1,4 +1,4 @@
const baseUrl = "https://api.emmint.com"; const baseUrl = "https://emiapi.reynafamily.com";
//const baseUrl = "http://localhost:3000"; //const baseUrl = "http://localhost:3000";
let getCall = async (path = "", params = {}) => { let getCall = async (path = "", params = {}) => {
@@ -15,6 +15,7 @@ let getCall = async (path = "", params = {}) => {
} }
}).then(response => response.json()).catch((error) => { }).then(response => response.json()).catch((error) => {
console.error(error); console.error(error);
console.trace();
}) })
} }
@@ -32,6 +33,7 @@ let deleteCall = async (path = "", params = {}) => {
} }
}).then(response => response.json()).catch((error) => { }).then(response => response.json()).catch((error) => {
console.error(error); console.error(error);
console.trace();
}) })
} }
@@ -46,6 +48,7 @@ let postCall = async (path, params) => {
} }
}).then(response => response.json()).catch((error) => { }).then(response => response.json()).catch((error) => {
console.error(error); console.error(error);
console.trace();
}) })
} }