1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/lib/middleware/validator.js
2017-11-16 16:07:27 +01:00

12 lines
244 B
JavaScript

'use strict';
const validator = require('express-validator');
module.exports = function() {
return validator({
customValidators: {
isUrlFriendlyName: input => encodeURIComponent(input) === input,
},
});
};