aboutsummaryrefslogtreecommitdiff
path: root/impl/node/index.js
blob: a0a09cde545337a13c436ee446b71ae55f0941fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const express = require('express')
const app = express()
const path = require
const static = __dirname + '/../../public'
app.use(express.static(static))
const port = 3000

app.get('/:addr(-?\\d+)', (req, res) => {
	res.sendFile(path.resolve(static + '/exec.html'))
})

app.listen(port, () => {
	console.log(`listening on ${port}`)
})