blob: 1246460148014bb0184c028a35425ee017820af7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
const fs = require('fs');
const config = require('../../config');
/*
* Reads ./lol file where the zblocks are saved
*
* Returns:
* - the file, it's already in JSON format.
*
*/
function showEntriesFile(req, res)
{
var data = JSON.parse(fs.readFileSync(config.blocksFile));
res.send(data);
};
module.exports = showEntriesFile;
|