Created
March 12, 2020 21:05
-
-
Save WouterNieuwerth/5afc888e75a49b6ce34a76f9fef7ccf2 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
/** | |
* Responds to a HTTP request. | |
* | |
* @param {!express:Request} req HTTP request context. | |
* @param {!express:Response} res HTTP response context. | |
*/ | |
exports.helloWorld = (req, res) => { | |
let example_content = req.body.example_content || 'Error, no example_content found in json'; | |
let another_example_content = req.body.another_example_content || 'Error, no another_example_content found in json'; | |
// Do whatever you want with the data from the json | |
res.status(200).send(example_content); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment