Blockchain explorer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
344 B

7 years ago
var models = require('../models');
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', async function(req, res, next) {
const blocks = await models.Block.findAll({
7 years ago
order: [['height', 'DESC']],
limit: 30,
});
res.render('index', {
blocks,
});
7 years ago
});
module.exports = router;