404.dev => dev

This commit is contained in:
qingwei.li 2016-12-24 19:50:41 +08:00
commit 6e81e66441
2 changed files with 2 additions and 2 deletions

4
app.js
View file

@ -4,8 +4,8 @@ var fs = require('fs')
http.createServer(function (req, res) {
serveStatic('.')(req, res, function () {
res.writeHead(404, { 'Content-Type': 'text/html' })
res.end(fs.readFileSync('404.dev.html'))
res.writeHead(200, { 'Content-Type': 'text/html' })
res.end(fs.readFileSync('dev.html'))
})
}).listen(3000, '0.0.0.0')