Last active
January 28, 2018 05:42
-
-
Save pariola/bff2db487db3c14868af82cec94b409b to your computer and use it in GitHub Desktop.
Hello World Cloud Function in ES6+
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
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