Skip to content

Commit

Permalink
feat: Add middleware function name (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkolodiy authored and isaachinman committed May 12, 2019
1 parent 839c1c1 commit 784b597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -26,7 +26,7 @@ var unknownMap = {
cookies: 'allowUnknownCookies'
};

exports = module.exports = function (schema) {
exports = module.exports = function expressValidation (schema) {
if (!schema) throw new Error('Please provide a validation schema');

return function (req, res, next) {
Expand Down

0 comments on commit 784b597

Please sign in to comment.