index.js 267 B

123456789101112
  1. var express = require('express')
  2. var app = express()
  3. var port = 10011;
  4. app.use(express.static('static'))
  5. app.post('/', function (req, res) {
  6. res.send('Hello World!')
  7. })
  8. app.listen(port, function () {
  9. console.log('Example app listening on ' + port + '!')
  10. })