diff --git a/routes/baseActionsRouter.js b/routes/baseActionsRouter.js index 1d99750..d5ac2c1 100755 --- a/routes/baseActionsRouter.js +++ b/routes/baseActionsRouter.js @@ -327,13 +327,16 @@ router.get("/address/:address", function(req, res) { console.log(obj.balance); console.log(obj.received); + res.locals.address = obj.address; + res.locals.balance = obj.balance; + res.locals.received = obj.received; + console.log(stderr); if (error !== null) { console.log(`exec error: ${error}`); } }); - /* const { spawn } = require("child_process"); @@ -361,7 +364,7 @@ router.get("/address/:address", function(req, res) { }); */ - //res.render("address"); + res.render("address"); }); diff --git a/views/address.pug b/views/address.pug new file mode 100644 index 0000000..32cc075 --- /dev/null +++ b/views/address.pug @@ -0,0 +1,11 @@ +extends layout + +block headContent + title Address #{address} + +block content + h1(class="h2") Address + br + small(class="monospace") #{address} + hr +