lib/middleware/bodyparser.js
function initEndpoint(brest, description) {

    const settings = _.defaultsDeep(description.bodyParser, settingsDefault);

    if (description.bodyParserModes) {
        description.bodyParserModes.forEach((mode) => addMode(description.middle, mode, settings));
    } else {
        const mode = description.bodyParserMode || BODY_PARSER_JSON;
        addMode(description.middle, mode, settings);
    }

  // return bodyParser[mode](settings[mode]);
}
function initEndpoint(brest, description) {

    const settings = _.defaultsDeep(description.bodyParser, settingsDefault);

    if (description.bodyParserModes) {
        description.bodyParserModes.forEach((mode) => addMode(description.middle, mode, settings));
    } else {
        const mode = description.bodyParserMode || BODY_PARSER_JSON;
        addMode(description.middle, mode, settings);
    }

  // return bodyParser[mode](settings[mode]);
}
function initEndpoint ( brest , description ) { const settings = _ . defaultsDeep ( description . bodyParser , settingsDefault ) ; if ( description . bodyParserModes ) { description . bodyParserModes . forEach ( ( mode ) => addMode ( description . middle , mode , settings ) ) ; } else { const mode = description . bodyParserMode || BODY_PARSER_JSON ; addMode ( description . middle , mode , settings ) ; } // return bodyParser[mode](settings[mode]); }
Setup bodyParser middleware according to settings
@param brest
@param description
Setup bodyParser middleware according to settings