diff options
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/index.js b/index.js new file mode 100644 index 0000000..7b9af6d --- /dev/null +++ b/index.js @@ -0,0 +1,13 @@ +const express = require('express'); +const path = require('path'); + +const app = express(); +app.route('/').get((req, res) => { + res.sendFile(path.join(__dirname, 'index.html')); +}); + +app.use(express.static('.')); + +app.listen(3000, () => { + console.log('Listening on 3000'); +}); |