dburl geaendert

This commit is contained in:
Ali
2026-02-20 19:12:23 +09:00
parent 9d32271b22
commit 3d43c413eb

View File

@@ -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}`);
})