modif app.js

This commit is contained in:
M1n-0
2024-06-05 19:49:37 +02:00
parent dbc1bbcd21
commit a76497db5f

View File

@@ -5,9 +5,9 @@ const port = 3000;
// Serve the index.html file at the root URL
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, '../html/index.html'));
res.sendFile(path.join(__dirname, 'index.html'));
});
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`);
app.listen(port, '0.0.0.0', () => {
console.log(`App listening at http://localhost:${port}`);
});