From a76497db5f4d3588167df1e8e3eca0d5925802bd Mon Sep 17 00:00:00 2001 From: M1n-0 <145598371+M1n-0@users.noreply.github.com> Date: Wed, 5 Jun 2024 19:49:37 +0200 Subject: [PATCH] modif app.js --- js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/app.js b/js/app.js index ce28be9..2bb7a89 100644 --- a/js/app.js +++ b/js/app.js @@ -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}`); });