Skip to content

Instantly share code, notes, and snippets.

@likai24
Last active October 6, 2017 10:47
Show Gist options
  • Save likai24/9496ce34972f8231b6b59fc82ff6fad3 to your computer and use it in GitHub Desktop.
Save likai24/9496ce34972f8231b6b59fc82ff6fad3 to your computer and use it in GitHub Desktop.
一个简单的文件服务器
const express = require('express')
const app = express()
app.use(express.static('./folder'));
app.listen(3000, function () {
console.log('Example app listening on port 3000!')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment