Created
January 11, 2019 21:58
-
-
Save Krzysztof-Cieslak/009b9c723beba0e2699693c88848fd5e to your computer and use it in GitHub Desktop.
PureScript + Functions
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
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