From 3d43c413eb35242cdae6e6a013603bdbdd74c38d Mon Sep 17 00:00:00 2001 From: Ali Date: Fri, 20 Feb 2026 19:12:23 +0900 Subject: [PATCH] dburl geaendert --- src/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.js b/src/server.js index 61c15ec..e629ecf 100644 --- a/src/server.js +++ b/src/server.js @@ -23,7 +23,7 @@ app.use(express.static(path.join(__dirname, '../public'))) // Serving up the HTML file from the /public dir app.get('/', (req, res) => { - res.sendFile(path.join(__dirname, 'public', 'index.html')) + res.sendFile(path.join(__dirname, '../public', 'index.html')) }) //Routes @@ -31,6 +31,6 @@ app.use('/auth', authRoutes) app.use('/todos', authMiddleware, todoRoutes) app.use('/elements', elementRoutes); -app.listen(PORT, () => { +app.listen(PORT, '0.0.0.0', () => { console.log(`Server has started on port: ${PORT}`); })