Add max level option
This commit is contained in:
parent
e789fb2b18
commit
eba21726d7
11 changed files with 201 additions and 17 deletions
4
app.js
4
app.js
|
|
@ -2,12 +2,10 @@ var serveStatic = require('serve-static')
|
|||
var http = require('http')
|
||||
var fs = require('fs')
|
||||
|
||||
var notfound = fs.readFileSync('404.dev.html')
|
||||
|
||||
http.createServer(function (req, res) {
|
||||
serveStatic('.')(req, res, function () {
|
||||
res.writeHead(404, { 'Content-Type': 'text/html' })
|
||||
res.end(notfound)
|
||||
res.end(fs.readFileSync('404.dev.html'))
|
||||
})
|
||||
}).listen(3000)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue