bug-hunters / oas3-tools

A Node.js and browser module that provides tooling around Swagger.
MIT License
27 stars 50 forks source link

App options #20

Closed thomasgainant closed 4 years ago

thomasgainant commented 4 years ago

Added a more general app options parameter instead of a single routing parameter. This way the configuration of the app can be separated on multiple themes.

I needed to be able to configure the morgan logging module on another project and had to code a hack to do so as it was not accessible in ExpressAppConfig. No hacky way needed if we have appOptions object and not only a routingOptions parameter.

I added the possibility to configure the format of morgan log strings (https://github.com/expressjs/morgan#morganformat-options) and implemented an HTTP error limiter. I also updated the example.

HugoMario commented 4 years ago

awesome! thanks a lot @thomasgainant !