Last active
October 9, 2017 13:26
-
-
Save jthegedus/6c7a96a17c7a6759790e9d5c7d459c5d to your computer and use it in GitHub Desktop.
Cloud Functions for Firebase - 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}`) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simplified the example removing any external packages.
Added use of Template Literals and Import Aliasing