aboutsummaryrefslogtreecommitdiff
path: root/api/routes/showNSEntriesFile
diff options
context:
space:
mode:
Diffstat (limited to 'api/routes/showNSEntriesFile')
-rw-r--r--api/routes/showNSEntriesFile/index.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/api/routes/showNSEntriesFile/index.js b/api/routes/showNSEntriesFile/index.js
index 745ddee..cc5edf6 100644
--- a/api/routes/showNSEntriesFile/index.js
+++ b/api/routes/showNSEntriesFile/index.js
@@ -9,7 +9,9 @@ const config = require('../../config');
* - the file, it's already in JSON format.
*
*/
-module.exports = (req, res) => {
+function showNSEntriesFile(req, res)
+{
var data = JSON.parse(fs.readFileSync(config.pairsFile));
res.send(data);
-}; \ No newline at end of file
+};
+module.exports = showNSEntriesFile;