dburl geaendert
This commit is contained in:
@@ -23,7 +23,7 @@ app.use(express.static(path.join(__dirname, '../public')))
|
|||||||
|
|
||||||
// Serving up the HTML file from the /public dir
|
// Serving up the HTML file from the /public dir
|
||||||
app.get('/', (req, res) => {
|
app.get('/', (req, res) => {
|
||||||
res.sendFile(path.join(__dirname, 'public', 'index.html'))
|
res.sendFile(path.join(__dirname, '../public', 'index.html'))
|
||||||
})
|
})
|
||||||
|
|
||||||
//Routes
|
//Routes
|
||||||
@@ -31,6 +31,6 @@ app.use('/auth', authRoutes)
|
|||||||
app.use('/todos', authMiddleware, todoRoutes)
|
app.use('/todos', authMiddleware, todoRoutes)
|
||||||
app.use('/elements', elementRoutes);
|
app.use('/elements', elementRoutes);
|
||||||
|
|
||||||
app.listen(PORT, () => {
|
app.listen(PORT, '0.0.0.0', () => {
|
||||||
console.log(`Server has started on port: ${PORT}`);
|
console.log(`Server has started on port: ${PORT}`);
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user