Skip to content

Instantly share code, notes, and snippets.

@travist
Last active June 6, 2020 02:29
Show Gist options
  • Save travist/90d64ae2b0bdbec76e10 to your computer and use it in GitHub Desktop.
Save travist/90d64ae2b0bdbec76e10 to your computer and use it in GitHub Desktop.
Remote Middleware Example
module.exports = function(req, next) {
// Append .example.com to emails for testing purposes...
req.body.data.email += '.example.com';
next(null);
};
Copy link

ghost commented Mar 6, 2020

Hi @travist, How could I post the rquest.body.data to external endpoint like Google Pub/Sub

@henryjiang-sfgov
Copy link

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