Skip to content

add option for default index file to static middleware#2

Open
nihildeb wants to merge 1 commit intocreationix:masterfrom
nihildeb:master
Open

add option for default index file to static middleware#2
nihildeb wants to merge 1 commit intocreationix:masterfrom
nihildeb:master

Conversation

@nihildeb
Copy link

Adds the possibility to pass an options table as is in connect's static file handler.

  .use(require('weblit-static')('./docroot', {index = 'index.html'}))

it feels a little hacky, but I didn't want to change the existing behavior.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments