Browse Source

05/25/2021 04:04:12 PM MST

master
coldstar 3 years ago
parent
commit
9491151cb2
2 changed files with 16 additions and 2 deletions
  1. +5
    -2
      routes/baseActionsRouter.js
  2. +11
    -0
      views/address.pug

+ 5
- 2
routes/baseActionsRouter.js View File

@@ -327,13 +327,16 @@ router.get("/address/:address", function(req, res) {
console.log(obj.balance); console.log(obj.balance);
console.log(obj.received); console.log(obj.received);


res.locals.address = obj.address;
res.locals.balance = obj.balance;
res.locals.received = obj.received;

console.log(stderr); console.log(stderr);
if (error !== null) { if (error !== null) {
console.log(`exec error: ${error}`); console.log(`exec error: ${error}`);
} }
}); });



/* /*
const { spawn } = require("child_process"); const { spawn } = require("child_process");


@@ -361,7 +364,7 @@ router.get("/address/:address", function(req, res) {
}); });
*/ */


//res.render("address");
res.render("address");


}); });




+ 11
- 0
views/address.pug View File

@@ -0,0 +1,11 @@
extends layout

block headContent
title Address #{address}

block content
h1(class="h2") Address
br
small(class="monospace") #{address}
hr


Loading…
Cancel
Save