Constants

PHOTO EMBED

Wed Jun 23 2021 13:53:31 GMT+0000 (UTC)

Saved by @joeavargas

const functions = require("firebase-functions");
const admin = require("firebase-admin");

// Firebase authentication
var serviceAccount = require("./permission.json");
admin.initializeApp({
  credential: admin.credential.cert(serviceAccount),
  databaseURL: "" //https://[DATABASE NAME].firebaseio.com
});

const express = require("express");
const app = express();
const db = admin.firestore();

const cors = require("cors");
app.use( cors({ origin:true }));
content_copyCOPY