Adding translators to About page

This commit is contained in:
softsimon committed 2022-01-15 04:01:53 +04:00
1 parent 5d15e2103d
commit a7528e60a8
5 files changed
+42 -2

No files matched your search

+8
View File
@@ -221,6 +221,14 @@ class Server {
res.status(500).end();
}
})
.get(config.MEMPOOL.API_URL_PREFIX + 'translators', async (req, res) => {
try {
const response = await axios.get('https://mempool.space/api/v1/translators', { responseType: 'stream', timeout: 10000 });
response.data.pipe(res);
} catch (e) {
res.status(500).end();
}
})
;
if (config.STATISTICS.ENABLED && config.DATABASE.ENABLED) {