Skip to content

v2.2.1

Latest
Compare
Choose a tag to compare
@Potentii Potentii released this 31 Jul 22:31

Locals object

To set the Express app locals object, there is a new method in the main Configurator:

server
   .locals({
      prop1: 'val1',
      prop2: 'val2'
   })
   // ...

Static options

Now, it's possible to set some of the express.static options on the add() method of the static configurator. Available options:

  • dotfiles
  • maxAge
  • etag

See: express.static.