diff options
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -3,9 +3,8 @@ const path = require('path'); const app = express(); -app.get('/', (req, res) => { - res.sendFile(path.join(__dirname, 'public', 'index.html')); -}); +// Set static directory +app.use(express.static(path.join(__dirname, 'public'))); const PORT = process.env.PORT || 3000; |