mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
9fdb948c69
Sessions will be required to solve admin-auth. I also refactored a few middlewares into seperate files to make the code easier to read. closes #262
12 lines
244 B
JavaScript
12 lines
244 B
JavaScript
'use strict';
|
|
|
|
const validator = require('express-validator');
|
|
|
|
module.exports = function() {
|
|
return validator({
|
|
customValidators: {
|
|
isUrlFirendlyName: input => encodeURIComponent(input) === input,
|
|
},
|
|
});
|
|
};
|