404.dev => dev
This commit is contained in:
parent
67f9083ff7
commit
6e81e66441
2 changed files with 2 additions and 2 deletions
4
app.js
4
app.js
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue