fix broken sponsor image proxy

This commit is contained in:
softsimon 2024-08-07 23:41:53 +02:00
parent 7f53741a7b
commit 0f688e8347
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -70,7 +70,7 @@ class AboutRoutes {
res.status(500).end();
}
})
.get(config.MEMPOOL.API_URL_PREFIX + 'services/account/images/:username', async (req, res) => {
.get(config.MEMPOOL.API_URL_PREFIX + 'services/account/images/:username/:md5', async (req, res) => {
const url = `${config.MEMPOOL_SERVICES.API}/${req.originalUrl.replace('/api/v1/services/', '')}`;
try {
const response = await axios.get(url, { responseType: 'stream', timeout: 10000 });