vapr-no-input
Installation
npm install --save vapr
npm install --save vapr-no-input
Usage
With the vapr-no-input
plugin, if someone makes a request containing any body content, they'll receive 413 Payload Too Large
.
const noInput = require('vapr-no-input');
const app = require('vapr')();
const route = app.get('/foo');
route.use(noInput());
route.use((req) => { ... });