Skip to content

Instantly share code, notes, and snippets.

@fredriccliver
Created September 10, 2020 08:30
Show Gist options
  • Save fredriccliver/0235fe16ae7cf93252c2e62db86d8bbb to your computer and use it in GitHub Desktop.
Save fredriccliver/0235fe16ae7cf93252c2e62db86d8bbb to your computer and use it in GitHub Desktop.
const functions = require("firebase-functions")
const express = require("express")
const app = express()
// my routings
const apiRoute = require("./api")
// add routes to the express app.
app.use("/api", apiRoute)
exports.api = functions.https.onRequest(app)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment