mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 22:46:54 +01:00
Proxy image requests.
This commit is contained in:
parent
70da8248cc
commit
2ba7cd9ebd
1 changed files with 3 additions and 0 deletions
|
@ -182,6 +182,9 @@ class Server {
|
|||
this.app
|
||||
.get(config.API_ENDPOINT + 'donations', (req, res) => {
|
||||
req.pipe(request('https://mempool.space/api/v1/donations')).pipe(res);
|
||||
})
|
||||
.get(config.API_ENDPOINT + 'donations/images/:id', (req, res) => {
|
||||
req.pipe(request('https://mempool.space/api/v1/donations/images/' + req.params.id)).pipe(res);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue