Created
December 24, 2017 04:01
-
-
Save DennisAlund/62045dd3881151dc95865cd174677da5 to your computer and use it in GitHub Desktop.
Gist for medium article https://medium.com/evenbit/63b847fbcb1f
This file contains hidden or 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
| export const cronEndpoint = functions.https.onRequest((request, response) => { | |
| if (functions.config().cron.apikey !== request.body.key) { | |
| response.status(401).send("I'm sorry Dave, I'm afraid I can't do that"); | |
| return; | |
| } | |
| response.status(200).send("The time is now."); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment