modif app.js
This commit is contained in:
@@ -5,9 +5,9 @@ const port = 3000;
|
|||||||
|
|
||||||
// Serve the index.html file at the root URL
|
// Serve the index.html file at the root URL
|
||||||
app.get('/', (req, res) => {
|
app.get('/', (req, res) => {
|
||||||
res.sendFile(path.join(__dirname, '../html/index.html'));
|
res.sendFile(path.join(__dirname, 'index.html'));
|
||||||
});
|
});
|
||||||
|
|
||||||
app.listen(port, () => {
|
app.listen(port, '0.0.0.0', () => {
|
||||||
console.log(`Example app listening at http://localhost:${port}`);
|
console.log(`App listening at http://localhost:${port}`);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user