Skip to content

Instantly share code, notes, and snippets.

@namieluss
Last active March 8, 2020 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save namieluss/f104d04f9374231f36e577fb8111d4e3 to your computer and use it in GitHub Desktop.
Save namieluss/f104d04f9374231f36e577fb8111d4e3 to your computer and use it in GitHub Desktop.
Firebase Cloud Functions with Google Spreadsheet
"use strict";
// The Cloud Functions for Firebase SDK to create Cloud Functions and setup triggers.
const functions = require("firebase-functions");
const {
createSpreadSheet,
createWorkSheet,
updateWorkSheet,
removeWorkSheet
} = require("./spreadsheet");
// Create and Deploy Multiple Cloud Functions
module.exports = {
createSpreadSheet: functions.https.onRequest(createSpreadSheet.handler),
createWorkSheet: functions.https.onRequest(createWorkSheet.handler),
updateWorkSheet: functions.https.onRequest(updateWorkSheet.handler),
removeWorkSheet: functions.https.onRequest(removeWorkSheet.handler)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment