Skip to content

Instantly share code, notes, and snippets.

@namieluss

namieluss/function-index.js Secret

Last active Mar 8, 2020
Embed
What would you like to do?
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