mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-25 22:51:37 +00:00
migrating repo to Bodyrep org
This commit is contained in:
17
node_modules/mongoose/static.js
generated
vendored
Normal file
17
node_modules/mongoose/static.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
var static = require('node-static');
|
||||
var server = new static.Server('.', { cache: 0 });
|
||||
|
||||
require('http').createServer(function (req, res) {
|
||||
req.on('end', function () {
|
||||
server.serve(req, res, function (err) {
|
||||
if (err) {
|
||||
console.error(err, req.url);
|
||||
res.writeHead(err.status, err.headers);
|
||||
res.end();
|
||||
}
|
||||
});
|
||||
});
|
||||
}).listen(8088);
|
||||
|
||||
console.error('now listening on localhost:8088');
|
||||
Reference in New Issue
Block a user