If this library is added to the express router in front of any endpoints it will reject any content-type: application/json requests larger than 100kb because of body-parser default limit. One fix would be to add in a config flag with a custom limit. Another fix would be to only use body-parser on the endpoints that match with this library.
https://github.com/expressjs/body-parser#limit
|
baseRouter.use(bodyParser.json({ type: 'application/json' })) |