blob: cc5edf665bc3fcfb492e9a4c7fd2ed35cc6e8c29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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.
*
*/
function showNSEntriesFile(req, res)
{
var data = JSON.parse(fs.readFileSync(config.pairsFile));
res.send(data);
};
module.exports = showNSEntriesFile;
|