var debug = require("debug"); var debugLog = debug("btcexp:router"); var express = require('express'); var csurf = require('csurf'); var router = express.Router(); var util = require('util'); var moment = require('moment'); var bitcoinCore = require("bitcoin-core"); var qrcode = require('qrcode'); var bitcoinjs = require('bitcoinjs-lib'); var sha256 = require("crypto-js/sha256"); var hexEnc = require("crypto-js/enc-hex"); var Decimal = require("decimal.js"); var marked = require("marked"); var utils = require('./../app/utils.js'); var coins = require("./../app/coins.js"); var config = require("./../app/config.js"); var coreApi = require("./../app/api/coreApi.js"); var addressApi = require("./../app/api/addressApi.js"); const forceCsrf = csurf({ ignoreMethods: [] }); router.get("/formatCurrencyAmount/:amt", function(req, res, next) { res.locals.currencyValue = req.params.amt; res.render("includes/value-display"); next(); }); module.exports = router;