Fix bug
This commit is contained in:
parent
d3a04d47f3
commit
75fc405f5c
|
@ -101,7 +101,7 @@ app.use(fileUpload());
|
||||||
app.get('/', (req, res) => {
|
app.get('/', (req, res) => {
|
||||||
fs.readFile('assets/data.json', 'utf-8', (err, data) => {
|
fs.readFile('assets/data.json', 'utf-8', (err, data) => {
|
||||||
if (err != null) {
|
if (err != null) {
|
||||||
console.log("Error: " + e);
|
console.log(err);
|
||||||
}
|
}
|
||||||
let parsed = parse(data);
|
let parsed = parse(data);
|
||||||
res.render('index', parsed);
|
res.render('index', parsed);
|
||||||
|
|
Loading…
Reference in New Issue