Bladeren bron

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

master
coldstar 3 jaren geleden
bovenliggende
commit
9491151cb2
2 gewijzigde bestanden met toevoegingen van 16 en 2 verwijderingen
  1. +5
    -2
      routes/baseActionsRouter.js
  2. +11
    -0
      views/address.pug

+ 5
- 2
routes/baseActionsRouter.js Bestand weergeven

@@ -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");

});



+ 11
- 0
views/address.pug Bestand weergeven

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

block headContent
title Address #{address}

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


Laden…
Annuleren
Opslaan