Currently we load the config in place, every time we need it. It would be faster / more efficient to just load it once for every request in form of a global middleware. All the controllers can then consume the data, for example from req.locals.config.
Currently we load the config in place, every time we need it. It would be faster / more efficient to just load it once for every request in form of a global middleware. All the controllers can then consume the data, for example from
req.locals.config
.