nyc-bookstores/node_modules/ecstatic/example/core.js

7 lines
173 B
JavaScript
Raw Normal View History

2013-05-27 20:45:59 +00:00
var http = require('http');
var ecstatic = require('../lib/ecstatic')(__dirname + '/public');
http.createServer(ecstatic).listen(8080);
console.log('Listening on :8080');