aboutsummaryrefslogtreecommitdiffstats
path: root/blockcypher.js
diff options
context:
space:
mode:
Diffstat (limited to 'blockcypher.js')
-rw-r--r--blockcypher.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/blockcypher.js b/blockcypher.js
deleted file mode 100644
index 91adbc10..00000000
--- a/blockcypher.js
+++ /dev/null
@@ -1,17 +0,0 @@
-const proxyMiddleware = require('http-proxy-middleware')
-const proxyContext = '/blockcypher'
-
-const proxyOptions = {
- target: 'https://api.blockcypher.com',
- changeOrigin: true,
- pathRewrite: {
- '^/blockcypher/': '/'
- },
- onProxyReq: function(proxyReq, req, res) {
- var symbol
- symbol = indexOf.call(proxyReq.path, '?') >= 0 ? '&' : '?'
- return proxyReq.path += symbol + "token=" + config.blockcypher_token
- }
-}
-
-module.exports = proxyMiddleware(proxyContext, proxyOptions)