diff options
Diffstat (limited to 'impl/node/index.js')
-rw-r--r-- | impl/node/index.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/impl/node/index.js b/impl/node/index.js new file mode 100644 index 0000000..a0a09cd --- /dev/null +++ b/impl/node/index.js @@ -0,0 +1,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}`) +}) |