Skip to content

Instantly share code, notes, and snippets.

@Krzysztof-Cieslak
Created January 11, 2019 21:58
Show Gist options
  • Save Krzysztof-Cieslak/009b9c723beba0e2699693c88848fd5e to your computer and use it in GitHub Desktop.
Save Krzysztof-Cieslak/009b9c723beba0e2699693c88848fd5e to your computer and use it in GitHub Desktop.
PureScript + Functions
var main = require("../output/Main/index.js");
module.exports = async function (context, req) {
context.log('JavaScript HTTP trigger function processed a request.');
context.log(main);
let resp = main.answer(999);
context.res = {
// status: 200, /* Defaults to 200 */
body: "Answer is " + resp
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment