parent
eb0c20dd92
commit
89efd410fb
@ -151,7 +151,7 @@ class Server {
|
|||||||
.get(config.MEMPOOL.API_URL_PREFIX + 'init-data', routes.getInitData)
|
.get(config.MEMPOOL.API_URL_PREFIX + 'init-data', routes.getInitData)
|
||||||
.get(config.MEMPOOL.API_URL_PREFIX + 'donations', async (req, res) => {
|
.get(config.MEMPOOL.API_URL_PREFIX + 'donations', async (req, res) => {
|
||||||
try {
|
try {
|
||||||
const response = await axios.get('http://localhost:9000/api/v1/donations', { responseType: 'stream', timeout: 10000 });
|
const response = await axios.get('https://mempool.space/api/v1/donations', { responseType: 'stream', timeout: 10000 });
|
||||||
response.data.pipe(res);
|
response.data.pipe(res);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
res.status(500).end();
|
res.status(500).end();
|
||||||
@ -159,7 +159,7 @@ class Server {
|
|||||||
})
|
})
|
||||||
.get(config.MEMPOOL.API_URL_PREFIX + 'donations/images/:id', async (req, res) => {
|
.get(config.MEMPOOL.API_URL_PREFIX + 'donations/images/:id', async (req, res) => {
|
||||||
try {
|
try {
|
||||||
const response = await axios.get('http://localhost:9000/api/v1/donations/images/' + req.params.id, {
|
const response = await axios.get('https://mempool.space/api/v1/donations/images/' + req.params.id, {
|
||||||
responseType: 'stream', timeout: 10000
|
responseType: 'stream', timeout: 10000
|
||||||
});
|
});
|
||||||
response.data.pipe(res);
|
response.data.pipe(res);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user