Created
May 5, 2016 19:35
-
-
Save jeffhollan/cbcfa315ded8949360fa035ee4c7c693 to your computer and use it in GitHub Desktop.
This file contains 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 (context, data) { | |
context.log('Webhook was triggered!'); | |
var message = data.message; | |
var rx = /(<\?xml.*>)/g; | |
var xml = rx.exec(message)[1]; | |
context.res = { | |
body: xml | |
}; | |
context.done(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment