Skip to content

Instantly share code, notes, and snippets.

@travist
Last active January 28, 2016 03:22
Show Gist options
  • Save travist/b68d3e38cde509e295df to your computer and use it in GitHub Desktop.
Save travist/b68d3e38cde509e295df to your computer and use it in GitHub Desktop.
install.md
npm install -g formio/formio-cli#master
formio bind POST https://myapp.form.io/myform ./middleware.js
module.exports = function(req, next) {
// Append .example.com to emails for testing purposes...
req.body.data.email = req.body.data.email + '.example.com';
next(null);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment