Added /api/v1/blocksExtras endpoint

This commit is contained in:
nymkappa
2022-02-08 15:47:43 +09:00
parent 2f921f4cc7
commit fac49d0b98
6 changed files with 179 additions and 45 deletions

View File

@@ -290,6 +290,10 @@ class Server {
;
}
this.app
.get(config.MEMPOOL.API_URL_PREFIX + 'blocks-extras', routes.getBlocksExtras)
.get(config.MEMPOOL.API_URL_PREFIX + 'blocks-extras/:height', routes.getBlocksExtras);
if (config.MEMPOOL.BACKEND !== 'esplora') {
this.app
.get(config.MEMPOOL.API_URL_PREFIX + 'mempool', routes.getMempool)