Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save WouterNieuwerth/5afc888e75a49b6ce34a76f9fef7ccf2 to your computer and use it in GitHub Desktop.
Save WouterNieuwerth/5afc888e75a49b6ce34a76f9fef7ccf2 to your computer and use it in GitHub Desktop.
/**
* 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