SyntaxFix
Write A Post
Hire A Developer
Questions
You could also read the HTML file and send it:
app.get('/', (req, res) => { fs.readFile(__dirname + '/public/index.html', 'utf8', (err, text) => { res.send(text); }); });