Static file server with the given root path.
root
var oneDay = 86400000; connect( connect.static(__dirname + '/public') ).listen(3000); connect( connect.static(__dirname + '/public', { maxAge: oneDay }) ).listen(3000);
maxAge
hidden
redirect
Static file server with the given
rootpath.Examples
Options
maxAgeBrowser cache maxAge in milliseconds. defaults to 0hiddenAllow transfer of hidden files. defaults to falseredirectRedirect to trailing "/" when the pathname is a dir