summaryrefslogtreecommitdiff
path: root/index.js
blob: 7b9af6d230e0e35712197f2d9409ffd310530633 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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');
});