mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
291 B
TypeScript
18 lines
291 B
TypeScript
import express = require('express');
|
|
import hpp = require('hpp');
|
|
|
|
const app = express();
|
|
|
|
app.use(hpp());
|
|
|
|
app.use(hpp({
|
|
checkBody: true,
|
|
checkBodyOnlyForContentType: 'urlencoded',
|
|
checkQuery: true,
|
|
whitelist: ['foo', 'bar']
|
|
}));
|
|
|
|
app.use(hpp({
|
|
whitelist: 'foobar'
|
|
}));
|