diff options
-rw-r--r-- | index.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,7 +1,12 @@ const express = require('express'); +const path = require('path'); const app = express(); +app.get('/', (req, res) => { + res.sendFile(path.join(__dirname, 'public', 'index.html')); +}); + const PORT = process.env.PORT || 3000; app.listen(PORT, () => console.log(`Server started on port ${PORT}`)); |