mirror of https://github.com/GOSTSec/gostexplr
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.
20 lines
350 B
20 lines
350 B
7 years ago
|
var models = require('../models');
|
||
|
var express = require('express');
|
||
|
var router = express.Router();
|
||
|
|
||
|
/* GET home page. */
|
||
|
router.get('/', function(req, res, next) {
|
||
|
models.Block.findAll({
|
||
|
order: [['height', 'DESC']],
|
||
|
limit: 30,
|
||
|
})
|
||
|
.then((blocks) => {
|
||
|
res.render('index', {
|
||
|
blocks,
|
||
|
});
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
module.exports = router;
|