blob: 559c31c3f7fec85fbf8bfbfd8e0e58f7a81979ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
const axios = require('axios');
const getOdoo = async (url) => {
try {
let res = await axios.get(process.env.DB_HOST + url);
return res.data.result || [];
} catch (error) {
console.log(error);
}
}
export {
getOdoo,
};
|