Skip to content

Instantly share code, notes, and snippets.

@heyAyushh
Last active Jun 21, 2019
Embed
What would you like to do?
invokes heyjumblr
// to be renamed /root/invoke/index.js
var axios = require("axios");
module.exports = function(context, req) {
context.log("JavaScript HTTP trigger function processed a request.");
thes = req.body.session.split("/");
thes = thes[4];
req.body.session = thes;
axios
.post("https://heyjumblr.azurewebsites.net/api/heyjumblr", req.body)
.then(response => {
context.res = {
body: response.data
};
context.done();
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment