creationix / weblit

A web framework for luvit 2.0 and lit
MIT License
110 stars 24 forks source link

add option for default index file to static middleware #2

Open nihildeb opened 9 years ago

nihildeb commented 9 years ago

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.