Connect
exports.mime
Expose mime module.
If you wish to extend the mime table use this
reference to the "mime" module in the npm registry.
Source
exports.mime = send.mime;
Expose mime module.
If you wish to extend the mime table use this
reference to the "mime" module in the npm registry.
exports.mime = send.mime;
Static:
Static file server with the given
root
path.Examples:
Options:
maxAge
Browser cache maxAge in milliseconds. defaults to 0hidden
Allow transfer of hidden files. defaults to falseredirect
Redirect to trailing "/" when the pathname is a dir. defaults to trueindex
Default file name, defaults to 'index.html'Source