Last active
June 6, 2020 02:29
-
-
Save travist/90d64ae2b0bdbec76e10 to your computer and use it in GitHub Desktop.
Remote Middleware Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(req, next) { | |
// Append .example.com to emails for testing purposes... | |
req.body.data.email += '.example.com'; | |
next(null); | |
}; |
The bind POST command no longer works, it returns
Error: Unexpected server response: 400
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @travist, How could I post the rquest.body.data to external endpoint like Google Pub/Sub