File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -17,30 +17,6 @@ var send = require('send');
1717var url = require ( 'url' ) ;
1818
1919/**
20- * Static:
21- *
22- * Static file server with the given `root` path.
23- *
24- * Examples:
25- *
26- * var oneDay = 86400000;
27- * var serveStatic = require('serve-static');
28- *
29- * connect()
30- * .use(serveStatic(__dirname + '/public'))
31- *
32- * connect()
33- * .use(serveStatic(__dirname + '/public', { maxAge: oneDay }))
34- *
35- * Options:
36- *
37- * - `maxAge` Browser cache maxAge in milliseconds. defaults to 0
38- * - `hidden` Allow transfer of hidden files. defaults to false
39- * - `redirect` Redirect to trailing "/" when the pathname is a dir. defaults to true
40- * - `index` Default file name, defaults to 'index.html'
41- *
42- * Further options are forwarded on to `send`.
43- *
4420 * @param {String } root
4521 * @param {Object } options
4622 * @return {Function }
You can’t perform that action at this time.
0 commit comments