This commit is contained in:
2019-05-22 06:56:49 +10:00
parent 12016a3fbf
commit 8b6c506790
+1 -1
View File
@@ -20,7 +20,7 @@ const newsRequest = () => (req, res) => {
//send each file as json //send each file as json
for (let i = 0; i < max; i++) { for (let i = 0; i < max; i++) {
json[fileNames[fileNames.length - i - 1]] = fs.readFileSync(fpath + '\\' + fileNames[fileNames.length - i - 1], 'utf8'); json[fileNames[fileNames.length - i - 1]] = fs.readFileSync(path.join(fpath, fileNames[fileNames.length - i - 1]), 'utf8');
} }
//actually send the data //actually send the data