From 25bd33f7da7c87457e3468f50f802432a9fc5d6a Mon Sep 17 00:00:00 2001 From: softsimon Date: Tue, 7 Sep 2021 13:13:29 +0400 Subject: [PATCH] validate-address API should be there both in esplora and bitcoind mode. --- backend/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index f8e30414c..bc2e47e0f 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -158,6 +158,7 @@ class Server { .get(config.MEMPOOL.API_URL_PREFIX + 'fees/mempool-blocks', routes.getMempoolBlocks) .get(config.MEMPOOL.API_URL_PREFIX + 'backend-info', routes.getBackendInfo) .get(config.MEMPOOL.API_URL_PREFIX + 'init-data', routes.getInitData) + .get(config.MEMPOOL.API_URL_PREFIX + 'validate-address/:address', routes.validateAddress) .get(config.MEMPOOL.API_URL_PREFIX + 'donations', async (req, res) => { try { const response = await axios.get('https://mempool.space/api/v1/donations', { responseType: 'stream', timeout: 10000 }); @@ -251,7 +252,6 @@ class Server { .get(config.MEMPOOL.API_URL_PREFIX + 'address/:address/txs', routes.getAddressTransactions) .get(config.MEMPOOL.API_URL_PREFIX + 'address/:address/txs/chain/:txId', routes.getAddressTransactions) .get(config.MEMPOOL.API_URL_PREFIX + 'address-prefix/:prefix', routes.getAddressPrefix) - .get(config.MEMPOOL.API_URL_PREFIX + 'validate-address/:address', routes.validateAddress) ; } }