Skip to content

Instantly share code, notes, and snippets.

@pariola
Last active January 28, 2018 05:42
Show Gist options
  • Save pariola/bff2db487db3c14868af82cec94b409b to your computer and use it in GitHub Desktop.
Save pariola/bff2db487db3c14868af82cec94b409b to your computer and use it in GitHub Desktop.
Hello World Cloud Function in ES6+
import * as functions from "firebase-functions";
export let helloWorld = functions.https.onRequest((req, res) => {
let world = `from ES6 in Cloud Functions!`;
res.status(200).send(`Hello ${world}`); // Template literals
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment