static middleware : add options.directoryIndex #556

Closed
wants to merge 1 commit into
from

Projects

None yet

4 participants

@revolunet

added an optional 'directoryIndex' param to static middleware with 'index.html' as default.

@tj
Member
tj commented May 2, 2012

hmmm im not sure we really need this, by convention "index" makes sense

@revolunet

just a suggestion, its up to you. i added this for my own needs, eg : demo.html

@tj
Member
tj commented May 2, 2012

you could symlink it to index.html, or demo/index.html

@nick
nick commented May 2, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment