From 89efd410fbcbc3c16a81e6ab33062fc96a2f264d Mon Sep 17 00:00:00 2001 From: softsimon Date: Sun, 7 Feb 2021 03:00:02 +0700 Subject: [PATCH] Fix for hard coded sponsor url. refs #319 --- backend/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 1013da281..2389d38b5 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -151,7 +151,7 @@ class Server { .get(config.MEMPOOL.API_URL_PREFIX + 'init-data', routes.getInitData) .get(config.MEMPOOL.API_URL_PREFIX + 'donations', async (req, res) => { 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); } catch (e) { res.status(500).end(); @@ -159,7 +159,7 @@ class Server { }) .get(config.MEMPOOL.API_URL_PREFIX + 'donations/images/:id', async (req, res) => { 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 }); response.data.pipe(res);