in express.js challenge I have successful to serve HTML file but I can’t pass test !
/** 3) Serve an HTML file */
app.get('/', (req, res) => {
res.sendFile(__dirname + '/views/index.html');
});
in express.js challenge I have successful to serve HTML file but I can’t pass test !
/** 3) Serve an HTML file */
app.get('/', (req, res) => {
res.sendFile(__dirname + '/views/index.html');
});
You need to comment the code from “A first working Express Server” challenge that returns a string “Hello Express” or to make a new different solution for this challenge, because we want to have an app that serves a file instead of a string