This commit is contained in:
arnaucode
2017-02-03 08:56:51 +01:00
parent c4b7414770
commit 112745d6fa
1585 changed files with 450241 additions and 0 deletions

10
www/node_modules/ecstatic/example/core.js generated vendored Normal file
View File

@@ -0,0 +1,10 @@
var http = require('http');
var ecstatic = require('../lib/ecstatic')({
root: __dirname + '/public',
showDir: true,
autoIndex: true
});
http.createServer(ecstatic).listen(8080);
console.log('Listening on :8080');

12
www/node_modules/ecstatic/example/express.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
var express = require('express');
var ecstatic = require('../lib/ecstatic');
var http = require('http');
var app = express();
app.use(ecstatic({
root: __dirname + '/public',
showdir : true
}));
http.createServer(app).listen(8080);
console.log('Listening on :8080');

View File

@@ -0,0 +1 @@
<b>boop!</b>

1
www/node_modules/ecstatic/example/public/hello.txt generated vendored Normal file
View File

@@ -0,0 +1 @@
Hello world!

View File

@@ -0,0 +1 @@
hello cruel world!

BIN
www/node_modules/ecstatic/example/public/turtle.png generated vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

10
www/node_modules/ecstatic/example/union.js generated vendored Normal file
View File

@@ -0,0 +1,10 @@
var union = require('union');
var ecstatic = require('../');
union.createServer({
before: [
ecstatic(__dirname + '/public')
]
}).listen(8080);
console.log('Listening on :8080');