We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca8f673 commit 341a9faCopy full SHA for 341a9fa
index.js
@@ -17,7 +17,7 @@ var sanitize = function(val) {
17
return val;
18
};
19
20
-module.exports = function() {
+var middleware = function() {
21
return function(req, res, next) {
22
['body', 'params', 'query'].forEach(function(k) {
23
if(req[k]) {
@@ -27,3 +27,6 @@ module.exports = function() {
27
next();
28
29
30
+
31
+module.exports = middleware;
32
+module.exports.sanitize = sanitize;
0 commit comments