in middleware/controllers/explorer.js [58:76]
async function getExplorerData(req, res) {
const baseUrl = `${getEnv("EXPLORER_BASE_URL")}/populatetable`;
const config = {
method: 'get',
maxBodyLength: Infinity,
url: baseUrl,
};
try {
const response = await axios.request(config);
return res.send(response.data);
} catch (error) {
logger.error('Error fetching explorer data:', error);
return res.status(500).send({
error: 'Failed to fetch explorer data',
details: error.message,
});
}
}