added an optional 'directoryIndex' param to static middleware with 'index.html' as default.
static middleware : add options.directoryIndex with default as 'index…
hmmm im not sure we really need this, by convention "index" makes sense
just a suggestion, its up to you. i added this for my own needs, eg : demo.html
you could symlink it to index.html, or demo/index.html
I think this is a useful addition... I've had instances in the past where there's an index.html inside the static folder (for legacy reasons) that I don't want serving up by default.