aboutsummaryrefslogtreecommitdiff
path: root/api/routes/showEntriesFile/index.js
blob: 3dd1c4008496b1048a112fda1d28b939f97a07c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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.
 *
 */
module.exports = (req, res) => {
    var data = JSON.parse(fs.readFileSync(config.blocksFile));
    res.send(data);
};