-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exress validator #66
Comments
Hi Vivian, There are three things you want to do:
app.configure = function configure(nconf, next) {
// Fired when an app configures itself
expressValidator = expressValidator(nconf.get('express-validator'));
next(null);
};
app.requestBeforeRoute = function requestBeforeRoute(server) {
server.use(expressValidator);
}; NOTE: I read in the express-validator site that it needs to be used right after using the bodyParser middleware (Which we don't use, we use multipart). I don't know if this will affect you. |
t0lkman
pushed a commit
to t0lkman/kraken-js
that referenced
this issue
Feb 6, 2014
organize express settings, keeping support for old ones
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I am working with Sujana in Paypal professional service.
I am trying to use express validator with Kraken.
I have downloaded express validator. How can I configure it with Kraken?
I am looking at app.json file but not sure what the syntax should be.
Thank you,
Vivian Yu
Developer
viyu@paypal.com
The text was updated successfully, but these errors were encountered: