can't pass options to express.static middleware #60

Closed
fabianonunes opened this Issue May 24, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@fabianonunes
Contributor

fabianonunes commented May 24, 2012

currently, the express.static is called on createApp and isn't possible pass any options to it (maxAge, for example)

https://github.com/Obvious/matador/blob/5bd69d/src/matador.js#L108

mountPublicDir = function (dir) {
  var directory = dir + '/public'
  path.existsSync(directory) && app.use(express.static(directory))
}

I think this should be more flexible.

@dpup

This comment has been minimized.

Show comment Hide comment
@dpup

dpup Jun 27, 2012

Contributor

I'm going to close this since we moved away from express.

Contributor

dpup commented Jun 27, 2012

I'm going to close this since we moved away from express.

@dpup dpup closed this Jun 27, 2012

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