Express Detox
Remove unwanted stuff from your request.body
.
Usage
const only = ; const only_user_params = ; /* POST / { first_name: 'Nathan', last_name: 'Hoad', some_other_thing: 'ignored' }*/ app;
Nested values
Specify nested values by passing objects to only
:
const only_nested_params = ; /* POST / { nested_thing: { first: 'yes', second: 'yes', third: 'ignored' } }*/