aboutsummaryrefslogtreecommitdiff
path: root/api/routes/showNSEntriesFile/index.js
blob: 745ddee96623aff36fe888f584186b0c9fd526a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const fs = require('fs');
const config = require('../../config');

/*
 * Reads ./szch file where the zchains with their
 * zlatest's are saved.
 *
 * Returns:
 *     - the file, it's already in JSON format.
 *
 */
module.exports = (req, res) => {
    var data = JSON.parse(fs.readFileSync(config.pairsFile));
    res.send(data);
};